Skip to content

fix: OpenAPI Schema Issue for /upload Endpoint#2470

Open
serinuntius wants to merge 1 commit intonftstorage:mainfrom
noplan-inc:fix/invalid-schema
Open

fix: OpenAPI Schema Issue for /upload Endpoint#2470
serinuntius wants to merge 1 commit intonftstorage:mainfrom
noplan-inc:fix/invalid-schema

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant