-
Notifications
You must be signed in to change notification settings - Fork 383
Open
Description
I have the following property in one of my OpenAPI resources:
"aspectRatio": {
"type": "array",
"examples": [
[
"16",
"9"
]
],
"prefixItems": [
{
"type": "string"
},
{
"type": "string"
}
],
"minItems": 2,
"maxItems": 2,
"additionalItems": false
},This represents a tuple of exactly two strings, such as ["16", "9"].
When I try to access this resource on the server I get the following error:
Request terminated with error: Error: missing items for {
"type": "array",
"examples": [
{
"0": "16",
"1": "9"
}
],
"prefixItems": [
{
"type": "string"
},
{
"type": "string"
}
],
"minItems": 2,
"maxItems": 2,
"additionalItems": false
} in /items/0/properties/show/properties/trailer/properties/aspectRatio
Expected Behavior
This should generate a tuple with two strings.
Metadata
Metadata
Assignees
Labels
No labels