-
Notifications
You must be signed in to change notification settings - Fork 253
Description
If the JSON schema states an array is unique, there is no visual indication.
Context
Where read-only or required appear, it should also say "unique" if the schema specifies.
Current Behavior
No indication of unique appears.
Expected Behavior
unique label should appear.
Steps to Reproduce
Here's an example OpenAPI 3.1 Schema demonstrating the issue.:
{ "openapi": "3.1.0", "info": { "title": "Dog Food API", "version": "1.0.0", "description": "API for adding dog food SKUs" }, "paths": { "/addDogFood": { "post": { "operationId": "addDogFood", "summary": "Add dog food items", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "dogFoods": { "type": "array", "items": { "type": "object", "properties": { "sku": { "type": "string" }, "name": { "type": "string", "readOnly": true } }, "required": [ "sku", "name" ] }, "uniqueItems": true, "minItems": 1 } }, "required": [ "dogFoods" ] } } } }, "responses": { "200": { "description": "Dog food items added successfully" } } } } } }