Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: OpenAPI Schema Issue for /upload Endpoint #2470

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

serinuntius
Copy link

Description

While trying to generate Rust code using the OpenAPI specification with the command openapi-generator-cli generate -g rust -i docs/api.yml -o hoge, I encountered the following validation error:

Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
 | Error count: 1, Warning count: 1
Errors: 
        -attribute paths.'/upload'(post).parameters.[x-agent-did].schemas.required is not of type `array`

This PR aims to resolve this issue by correcting the schema definition for the x-agent-did parameter in the /upload endpoint.

@serinuntius serinuntius changed the title Fix OpenAPI Schema Issue for /upload Endpoint Fix: OpenAPI Schema Issue for /upload Endpoint Oct 25, 2023
@serinuntius serinuntius changed the title Fix: OpenAPI Schema Issue for /upload Endpoint fix: OpenAPI Schema Issue for /upload Endpoint Oct 25, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant