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
All the fixed fields declared above are objects that MUST use keys
that match the regular expression: ^[a-zA-Z0-9\.\-_]+$.
However, most of the fixed fields accept a Reference Object with the key $ref which doesn't match the regular expression.
This inconsistency or lack of precision causes some tools to enforce the regular expression blindly and do not consider $ref under parameters for example as a valid OpenAPI document.
See for example : OpenAPITools/openapi-generator#11151
The text was updated successfully, but these errors were encountered:
is not valid OpenAPI syntax because $ref is not allowed directly under components.<type>, it's only allowed under components.<type>.<name>.
Some tools (such as bundlers/dereferencers) choose to support $refs in arbitrary places. In this case, you'd have to pre-process the file with the corresponding bundler/dereferencer to resolve non-standard $refs before using the file with OpenAPI-compliant tools.
In the 3.1 spec one can read the following
However, most of the fixed fields accept a Reference Object with the key $ref which doesn't match the regular expression.
This inconsistency or lack of precision causes some tools to enforce the regular expression blindly and do not consider $ref under parameters for example as a valid OpenAPI document.
See for example : OpenAPITools/openapi-generator#11151
The text was updated successfully, but these errors were encountered: