-
Notifications
You must be signed in to change notification settings - Fork 315
Closed
Description
When defining, within a Schema Object, an "array" element with both constraints (e.g. "minLength") and "description", they get mixed-up in unclear way.
RapiDoc version 9.2.0 (from CDN: https://unpkg.com/[email protected]/dist/rapidoc-min.js)
Example:
Schema
{
"info": {
"title": "Demo",
"version": "0.0.1"
},
"openapi": "3.0.3",
"paths": {
"/api/v1/demo": {
"post": {
"operationId": "demo",
"description": "Demo API",
"parameters": [],
"responses": {
"400": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"description": "Error key",
"type": "string",
"pattern": "^[a-z_]+$",
"minLength": 1
},
"invalidIds": {
"description": "List of invalid IDs",
"type": "array",
"items": {
"type": "string",
"pattern": "^ID[0-9]$"
},
"minItems": 1,
"maxItems": 1000
}
},
"required": [
"error",
"invalidIds"
],
"additionalProperties": false
},
"example": {
"error": "invalid_id",
"invalidIds": [ "IDn" ]
}
}
}
}
}
}
}
}
}Metadata
Metadata
Assignees
Labels
No labels
