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
It would be possible to support YAML anchors directly in smallrye-open-api by "preprocessing" a YAML file with snakeyaml.
I'm not sure how much appetite there is to have this kind of change. IMO if it's added to smallrye-open-api, then it should be hidden behind a toggle at least, or better using another io.smallrye.openapi.runtime.io.Format type.
The cleaner solution would probably be to add support for YAML anchors to Jackson.
The text was updated successfully, but these errors were encountered:
@snazy thanks for opening this. Is the expectation that the anchors would be supported when reading a static file, but not present in the final OpenAPI model -- since they would be lost in the object structure after de-serializing?
OpenApiProcessor uses Jackson, which does not support YAML anchors.
(OpenAPITools sample, Jackson issue (stale))
It would be possible to support YAML anchors directly in smallrye-open-api by "preprocessing" a YAML file with snakeyaml.
I'm not sure how much appetite there is to have this kind of change. IMO if it's added to smallrye-open-api, then it should be hidden behind a toggle at least, or better using another
io.smallrye.openapi.runtime.io.Format
type.The cleaner solution would probably be to add support for YAML anchors to Jackson.
The text was updated successfully, but these errors were encountered: