Contributions
- 1.2KViews0likes0Comments
Array items
Hi, i've a question about arrays and the number of valid elements. are the following assumptions correct? example1: example1: type: object properties: name: type: string maxLength: 50 comments: type: array items: type: string maxLength: 50 required: - name assumption: number of valid comment entries: 0 - n? example 2: example2: type: object properties: name: type: string maxLength: 50 comments: type: array items: type: string maxLength: 50 required: - name - comments assumption: number of valid comment entries: 1 - n example 3: example3: type: object properties: name: type: string maxLength: 50 comments: type: array items: type: string maxLength: 50 minItems: 1 required: - name assumption: number of valid comment entries: 1 - n example 4 example4: type: object properties: name: type: string maxLength: 50 comments: type: array items: type: string maxLength: 50 minItems: 0 required: - name assumption: number of valid comment entries: 0 - n example 5: /operation1: get: tags: - example operationId: operation1 responses: "200": content: application/json: schema: type: array items: type: string assumption: nr of valid items: 0 - n example 6: /operation1: get: tags: - example operationId: operation1 responses: "200": content: application/json: schema: type: array items: type: string minItems: 1 assumption: nr of valid items: 1 - n thanks 🙂Solved1.2KViews0likes2Comments