Skip to content

fix: keep converted schemas in standalone validator state - #904

Merged
Tony133 merged 2 commits into
mainfrom
fix/standalone-validator-state
Oct 22, 2026
Merged

Tony133 merged 2 commits into
mainfrom
fix/standalone-validator-state

Conversation

@gurgunday

Copy link
Copy Markdown
Member

Validator#addSchema registered the converted schema with Ajv but stored the original one in the state used by standalone mode

The restored validator therefore lacked the fjs_type conversion and rejected values serialized through toJSON, such as Date for date-time strings when inlineValidators is false

gurgunday and others added 2 commits October 21, 2026 23:12
Validator#addSchema registered the converted schema with Ajv but stored
the original one in the state used by standalone mode. The restored
validator therefore lacked the fjs_type conversion and rejected values
serialized through toJSON, such as Date for date-time strings, when
inlineValidators is false.
@Tony133
Tony133 merged commit e2289ca into main Oct 22, 2026
20 checks passed
@Tony133
Tony133 deleted the fix/standalone-validator-state branch October 22, 2026 07:27
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