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

[OAS 3.1.0] Only one of Paths, Components, or Webhooks is required #592

Open
Azquelt opened this issue Jan 19, 2024 · 1 comment
Open

[OAS 3.1.0] Only one of Paths, Components, or Webhooks is required #592

Azquelt opened this issue Jan 19, 2024 · 1 comment
Labels
OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support

Comments

@Azquelt
Copy link
Member

Azquelt commented Jan 19, 2024

Previously paths was always required in an OpenAPI document, but now only one of paths, components and webhooks is required.

In practise, I suspect that usually we will almost always have paths when using MP OpenAPI.

However, we may want to:

  • Check and update our documentation in this area
  • Add a test building a model without a paths entry
@Azquelt Azquelt added the OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support label Jan 19, 2024
@Azquelt Azquelt added this to the MP OpenAPI 4.0 milestone Jan 19, 2024
@Azquelt
Copy link
Member Author

Azquelt commented May 13, 2024

I can't see anywhere we're requiring paths, so we just need a test where we build a model without paths. This would need to be a separate app and it should probably disable scanning and just build the model with OASModelReader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OAS 3.1.0 All issues related to OpenAPI version 3.1.0 support
Projects
None yet
Development

No branches or pull requests

1 participant