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 function to compile schema validators without creating a file #3793

Merged
merged 5 commits into from
Aug 4, 2023

Conversation

zxbodya
Copy link
Contributor

@zxbodya zxbodya commented Jul 28, 2023

Reasons for making this change

Exposing new function compileSchemaValidatorsCode to allow creating precompiled validator without a file. This is useful in case when precompiled validator is to be created dynamically.

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests. I've run npm run test:update to update snapshots, if needed.
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

@zxbodya zxbodya marked this pull request as ready for review July 28, 2023 14:48
CHANGELOG.md Outdated
Comment on lines 26 to 54
## @rjsf/validator-ajv8

- Exposing new function `compileSchemaValidatorsCode` to allow creating precompiled validator without a file. This is useful in case when precompiled validator is to be created dynamically. [#3793](https://github.com/rjsf-team/react-jsonschema-form/pull/3793)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this into a new 5.12.0 section since this is a new feature

@zxbodya zxbodya force-pushed the precompile-no-file branch 2 times, most recently from cd2c236 to 519e143 Compare August 2, 2023 20:25
@heath-freenome heath-freenome merged commit 49ea69e into rjsf-team:main Aug 4, 2023
4 checks passed
@zxbodya zxbodya deleted the precompile-no-file branch August 4, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants