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

Unevaluated Items #96

Closed
LasneF opened this issue Oct 17, 2024 · 2 comments
Closed

Unevaluated Items #96

LasneF opened this issue Oct 17, 2024 · 2 comments

Comments

@LasneF
Copy link

LasneF commented Oct 17, 2024

https://tour.json-schema.org/content/04-Arrays/08-Unevaluated-Items

The Unevaluated item description does not explains enought the diffrences within items keyword
we may need to twist the requirement , so that it highlight the definitive usage of unevaluatedItems
but not sure how

here taking the response sample and replacing unevaluatedItems by items makes the validation passing , so here it makes the differences not clear enough

{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "integer"
},
"skills": {
"type": "array",
"prefixItems": [
{
"enum": [
"HTML",
"CSS",
"JavaScript"
]
},
{
"enum": [
"HTML",
"CSS",
"JavaScript"
]
},
{
"enum": [
"HTML",
"CSS",
"JavaScript"
]
}
],
"items": {
"type": "string"
}
}
}
}

@jdesrosiers
Copy link
Member

Duplicate of #61. I suggest removing the lesson until it can be fixed.

JeelRajodiya added a commit that referenced this issue Nov 2, 2024
@JeelRajodiya
Copy link
Member

The Unevaluated items lesson has been removed.

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

3 participants