How to add string array in schema
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023
07:38 AM
03-29-2023
07:38 AM
How to add string array in schema
While documenting schemas, tool is not accepting array of strings. Getting validation error as `items` must be an object.
Used syntax as below:
data:
type: array
items:
- type:
format: string
description: Entity type.
- id:
type: string
description: Unique identifier
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023
09:54 AM
03-29-2023
09:54 AM
