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

$ref caching issue #443

Merged
merged 29 commits into from
Sep 11, 2021
Merged

$ref caching issue #443

merged 29 commits into from
Sep 11, 2021

Conversation

prashanthjos
Copy link
Member

In a scenario where we use the same JsonSchemaFactory to create multiple JsonSchema instances with each instance having its own config (which is instance of SchemaValidatorsConfig) the cached $ref's are picking up the initial config that was set by first call to JsonSchemaFactory.getSchema. This PR addresses the issue of refreshing the config every time we call JsonSchemaFactory.getSchema. As per my understanding we should be caching the JSONNode instance associated with a schema and not the config.

@stevehu can you please have a look at the PR and let me know your suggestions and approve it if we are good.

prashanthjos and others added 29 commits October 21, 2020 17:39
Getting latest changes from networknt
Fixing concurrency and compilation issues. (networknt#385)
@prashanthjos
Copy link
Member Author

@stevehu can you please have a look at this PR.

@prashanthjos
Copy link
Member Author

@stevehu this review has been pending for a while. We have an important functionality that is waiting for this PR to be merged. Can you please take a look and let me know your comments.

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.

3 participants