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
The bundler should bundler the shared reference into the document in a way that does not change the definition. OR we need to decide if we are going to lean more into OAS schema rules and not allow ref siblings that aren't description, or summary and remove all other siblings to ensure the definition doesn't change.
Possible Workaround/Solution
Us an allOf to include additional values for your property so that the ref can be in its own object
Steps to Reproduce
Write a test that uses let schema = await $RefParser.bundle(path.rel("specs/bundle/file1.yaml")); pointing to the file1.yaml provided in the current behavior section. Ensure you also place file2.yaml in the same dir so that it can dereference properly.
See how the file resolves and bundles the references
Environment
Version used:
Environment name and version (e.g. Chrome 39, node.js 5.4):
Operating System and version (desktop or mobile):
Link to your environment/workspace/project:
The text was updated successfully, but these errors were encountered:
Context
This issue was first noticed in elements. The resulting dereferenced and bundled file is changing the original definition of the schema.
Current Behavior
When dereferencing and bundling the following oas schema:
file1.yaml
:file2.yaml
:you get the following output from the bundler:
This is changing the original definition of
#/paths/~1operation/post/requestBody/content/application~1json/schema/properties/BBBBB
from
to (depending on how description is handled by the particular ref resolver)
Expected Behavior
The bundler should bundler the shared reference into the document in a way that does not change the definition. OR we need to decide if we are going to lean more into OAS schema rules and not allow ref siblings that aren't description, or summary and remove all other siblings to ensure the definition doesn't change.
Possible Workaround/Solution
Us an allOf to include additional values for your property so that the ref can be in its own object
Steps to Reproduce
let schema = await $RefParser.bundle(path.rel("specs/bundle/file1.yaml"));
pointing to the file1.yaml provided in thecurrent behavior
section. Ensure you also place file2.yaml in the same dir so that it can dereference properly.Environment
The text was updated successfully, but these errors were encountered: