Skip to content
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

CLI option to validate-only the schema #1198

Open
adrianlungu opened this issue Mar 12, 2024 · 0 comments
Open

CLI option to validate-only the schema #1198

adrianlungu opened this issue Mar 12, 2024 · 0 comments
Labels
enhancement New feature or request openapi-features OpenAPI features support issues

Comments

@adrianlungu
Copy link

Description

Tried redocly and vacuum for validating an OpenAPI schema, but there are still differences with regards to what ogen checks vs what the other tools test so it would be nice to have a validate-only cli option to be able to use it in CI to check if the schema is valid from ogen's perspective.

For example:

        - name: status
          description: The status
          example: active
          schema:
            type: string
            items:
              type: string
              enum:
                - active
                - inactive

This throws a items: unexpected field for type "string" via ogen but redocly and vacuum consider this a valid OpenAPI spec for some reason.

@adrianlungu adrianlungu added enhancement New feature or request openapi-features OpenAPI features support issues labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi-features OpenAPI features support issues
Projects
None yet
Development

No branches or pull requests

1 participant