Open bereg2k opened 5 months ago
just a few thoughts
@daniel-white Thanks for your response!
"openap"
key issue)internally Spectral "decides" that it's not OAS
It's just code. If there is an "openapi" key in the root then it applies oas rules.
As Daniel mentioned, the tool should probably say something if it doesn't match on oas, aas, or json schema. Outside of that, there's not much to do.
@mnaumanali94 do we have any use-cases for "passing through unknown spec files as error free"? I would consider throwing an error if spectral can't identify the specification?
Couple of ways we can improve this:
Discussed in https://github.com/stoplightio/spectral/discussions/2630