You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 includeapplication/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.
The text was updated successfully, but these errors were encountered: