sagold / json-schema-library

Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation
MIT License
164 stars 19 forks source link

fix: oneOf step loses compiled reference resolution #35

Closed Carl-Foster closed 1 year ago

Carl-Foster commented 1 year ago

Due to much of the ref resolution stored within a schema as non-enumerable properties, there needs to be serious care when running a copy/clone operation on the schema. I'm wary of the mutation that will now occur, however I'm not sure what the consequence of that will be.

sagold commented 1 year ago

Hi Carl,

Thank you very much for this pull request! I will test and integrate your fix within the next weeks.

sagold commented 1 year ago

In addition please note that this issue has already been adressed in the upcoming release which can be installed with

yarn add json-schema-library@8.0.0-rc5