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

Support "contains", "maxContains" and "minContains" keywords. #121

Open
charjr opened this issue Apr 19, 2023 · 0 comments
Open

Support "contains", "maxContains" and "minContains" keywords. #121

charjr opened this issue Apr 19, 2023 · 0 comments
Labels
external An issue that affects the users
Milestone

Comments

@charjr
Copy link
Collaborator

charjr commented Apr 19, 2023

OAS 3.1 adds contains, maxContains and minContains.

These are keywords for validating type:array Schema Objects.

contains takes a schema value that X items in the array must follow where minContains <= X <= maxContains.

maxContains and minContains have no effect if contains is unspecified.

minContains default to 1 if unspecified. (must be a non-negative integer, zero is allowed)

Useful links:
contains
minContains and maxContains

@charjr charjr added this to the OAPI 3.1 milestone Apr 19, 2023
@charjr charjr added enhancement external An issue that affects the users and removed enhancement labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external An issue that affects the users
Projects
None yet
Development

No branches or pull requests

1 participant