Skip to content

correctly narrow "number" type to "integer", fixes #1935#2192

Merged
epoberezkin merged 5 commits intomasterfrom
JacobLey-integerSubSchemaNarrowing
Jan 2, 2023
Merged

correctly narrow "number" type to "integer", fixes #1935#2192
epoberezkin merged 5 commits intomasterfrom
JacobLey-integerSubSchemaNarrowing

Conversation

@epoberezkin
Copy link
Member

updates #1938

@epoberezkin epoberezkin merged commit a489265 into master Jan 2, 2023
@epoberezkin epoberezkin deleted the JacobLey-integerSubSchemaNarrowing branch January 2, 2023 23:48
@epoberezkin epoberezkin added this to the 8.12 milestone Jan 2, 2023
AlbinaBlazhko17 pushed a commit to Redocly/ajv that referenced this pull request Oct 28, 2025
…ajv-validator#2192)

* Add failing test for integer subschema narrowing

* Add number to includesType check for context types

* narrow number to integer correctly

* fix lint errors

Co-authored-by: Jacob Ley <jacob@getshowcase.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants