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
Great work on swagger-parser. I'm having an issue though: bundling pointers inside an externally reffed file seems to include the name of the pointer, where it shouldn't. I'm guessing the pointers are pretty much ignored.
Try parsing https://github.com/OAI/OpenAPI-Specification/tree/master/examples/v2.0/yaml/petstore-separate from the OpenAPI specs (the entry point is spec/swagger.api), and then validating it.
File spec/swagger.apirefers to parameters.yaml#/tagsParam. Bundling will include the parameters.yaml file and even select tagsParam, but it also -- incorrectly -- includes the tagsParamtag itself, rendering the resulting swagger.json invalid.
Let me know if I missed something here! Thanks for taking a look.
The text was updated successfully, but these errors were encountered:
Yeah, that's a bug that has been fixed in the latest version of json-schema-ref-parser, but there are some breaking changes, so Swagger Parser hasn't been updated yet.
Hi there,
Great work on swagger-parser. I'm having an issue though: bundling pointers inside an externally reffed file seems to include the name of the pointer, where it shouldn't. I'm guessing the pointers are pretty much ignored.
Try parsing
https://github.com/OAI/OpenAPI-Specification/tree/master/examples/v2.0/yaml/petstore-separate
from the OpenAPI specs (the entry point isspec/swagger.api
), and then validating it.File
spec/swagger.api
refers toparameters.yaml#/tagsParam
. Bundling will include theparameters.yaml
file and even selecttagsParam
, but it also -- incorrectly -- includes thetagsParam
tag itself, rendering the resulting swagger.json invalid.Let me know if I missed something here! Thanks for taking a look.
The text was updated successfully, but these errors were encountered: