Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose functions for merging schemas from JSON schema samples plugins #9765

Closed
glowcloud opened this issue Mar 29, 2024 · 1 comment
Closed

Comments

@glowcloud
Copy link
Contributor

We can expose the functions existing in JSON Schema 5 samples

const liftSampleHelper = (oldSchema, target, config = {}) => {

and JSON Schema 2020-12 samples
const merge = (target, source, config = {}) => {

so that we can use them interchangeably for merging schemas outside of the function for getting examples (sampleForSchemaGeneric in both plugins).

This will help with the cases described in #9763.

@glowcloud
Copy link
Contributor Author

Addressed by #9766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants