stoplightio / json-schema-tree

Apache License 2.0
11 stars 7 forks source link

fix(walker): support circular JSON $refs with overrides #26

Closed P0lip closed 10 months ago

P0lip commented 10 months ago

Related to https://github.com/stoplightio/json-schema-tree/issues/19

The actual fix here is initializing initialFragment earlier so that its initially assigned value isn't an already mutated schema fragment. Unsure whether this will help with the tricky spec, since allOf merging might be the bottleneck now

The other change is mostly a little optimization to abort quickly if the resolved fragment has been already processed.

github-actions[bot] commented 10 months ago

:tada: This PR is included in version 2.3.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: