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

OpenAPI: If array has "uniqueItems" and "items" has "enum" then "min/maxItems" is constrained #96

Closed
kerrykimbrough opened this issue Jan 14, 2020 · 1 comment

Comments

@kerrykimbrough
Copy link
Contributor

Consider the following schema:

"schema": {
    "type": "array",
    "items": {
        "type": "string"
        "enum": [ "A", "B", "C" ]
    },
    "minItems": 4,
    "maxItems": 5,
    "uniqueItems": true
}

Both minItems and maxItems are infeasible, input conditions that should be recognized, resolved, and notified. But they aren't.

kerrykimbrough added a commit that referenced this issue Feb 28, 2020
* arrayValueVar: Handle when uniqueItems and min/maxItems exceeds number of possible item values

* InputModeller: Fix logic to satisfy (not-)multipleOf constraints
@kerrykimbrough
Copy link
Contributor Author

Fixed by PR #99

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

No branches or pull requests

1 participant