Content-Length: 219660 | pFad | http://github.com/oapi-codegen/oapi-codegen/issues/1976

F1 Some examples are using invalid OpenAPI 3.0.x · Issue #1976 · oapi-codegen/oapi-codegen · GitHub
Skip to content

Some examples are using invalid OpenAPI 3.0.x #1976

New issue

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

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

Already on GitHub? Sign in to your account

Open
jamietanna opened this issue May 10, 2025 · 0 comments
Open

Some examples are using invalid OpenAPI 3.0.x #1976

jamietanna opened this issue May 10, 2025 · 0 comments
Labels
bug Something isn't working documentation

Comments

@jamietanna
Copy link
Member

I.e. if trying to generate all types for https://github.com/oapi-codegen/oapi-codegen/tree/main/examples/client this fails with:

error generating code: error generating type definitions: error generating Go types for component schemas: error converting Schema Unreferenced to Go type: error generating Go schema for property 'id': error resolving primitive type: unhandled Schema type: &[int]

This is because we've got an invalid schema type. Via vacuum:

api.yaml:47:11                                                     | error    | unknown schema type: `int`                                                               | oas-schema-check           | Schemas              | $.components.schemas['Unreferenced'].properties['id'].type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/oapi-codegen/oapi-codegen/issues/1976

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy