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

Registry tool: compute conformance requires exact matches of spec mime types #1216

Open
timburks opened this issue Jul 31, 2023 · 1 comment

Comments

@timburks
Copy link
Contributor

Currently compute conformance will only run on specs whose mime types exactly match the mime types listed in the style guide. This can make linting fragile -- a style guide might include application/x.openapi+gzip;version=3 in its mime types and fail to match specs with any of these similar types:

  • application/x.openapi+gzip;version=3.0.0
  • application/x.openapi+gzip;version=3.0
  • application/x.openapi;version=3

I think a reasonable solution to this would be to accept wildcards or regular expressions in the styleguide mime type list, but let's consider both of these possibilities and any other suggestions with mock style guides (in this thread) before making code changes.

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

No branches or pull requests

2 participants