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

OpenAPI 2.0: add linting rule for media type #3668

Open
char0n opened this issue Jan 12, 2024 · 0 comments
Open

OpenAPI 2.0: add linting rule for media type #3668

char0n opened this issue Jan 12, 2024 · 0 comments
Labels

Comments

@char0n
Copy link
Member

char0n commented Jan 12, 2024

Media Type is defined as https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#mime-types

Now the goal of this issue is to validate all media types as valid.

Part 1

Provide media type parser based on https://datatracker.ietf.org/doc/html/rfc6838 and it's ABNF grammar in similar manner as https://github.com/char0n/openapi-path-templating

Part 2

Utilize the parser to validate all media type within the definition.


Important

This might be also applicable to OpenAPI 3.0.x and OpenAPI 3.1.0. We need to verify as part of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant