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

executable interface to openapi document validation #86

Open
karenetheridge opened this issue Dec 3, 2024 · 0 comments
Open

executable interface to openapi document validation #86

karenetheridge opened this issue Dec 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@karenetheridge
Copy link
Owner

karenetheridge commented Dec 3, 2024

Create a shell-executable wrapper that loads an openapi document from json or yaml and provides information about the data therein.

  • validation: if the document is invalid, clearly state what the errors are
  • information: (assuming the document is valid), dump information like:
    • number of paths, webhooks, other high level objects
    • number of operations under paths, webhooks
    • linting items, that are not strictly "wrong" but might lead to issues at runtime:
      • any unresolved $refs (that point to external documents): identify the uri(s) of these external refs
      • $refs that point to the wrong entity type
      • missing path parameter definitions
      • ...

Also we can do some static analysis to try to predict some runtime issues, e.g. unresolved $refs that would point to this internal document (therefore they obviously can never resolve).

@karenetheridge karenetheridge added the enhancement New feature or request label Dec 3, 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
Projects
None yet
Development

No branches or pull requests

1 participant