Skip to content

Test min max#25

Merged
carnage merged 6 commits intomainfrom
test-min-max
Nov 15, 2024
Merged

Test min max#25
carnage merged 6 commits intomainfrom
test-min-max

Conversation

@charjr
Copy link
Collaborator

@charjr charjr commented Nov 14, 2024

Simplifies items:

OpenAPI 3.0 explicitly states that items must not be an array.

OpenAPI 3.1 depends on a later version of the Json Schema which does not allow items to be an array.

Adds format

Useful for Membrane core

Tests getRelevantMinimum and getRelevantMaximum

This required updating the PartialHelper to allow constructing with all of the keywords for 3.0

OpenAPI 3.0 specifically states items must be a Schema (if specified).
OpenAPI 3.1 (by default) uses a more recent Json Schema;
    - items must be a Schema (if specified).

Both OpenAPI versions allow properties to be treated as an empty array.

Only OpenAPI 3.1 has prefixItems, which cna be treated as an empty array.
@carnage carnage merged commit 4f83fb0 into main Nov 15, 2024
@carnage carnage deleted the test-min-max branch November 15, 2024 12:21
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