Schema with examples array (OAS 3.1)
POST/schema-examples-array
OpenAPI 3.1 allows examples at the schema level as an array of values.
This is different from Media Type examples which is an object with named examples.
Schema:
schema:
type: object
properties:
name:
type: string
age:
type: integer
examples:
- name: "John Doe"
age: 30
- name: "Jane Smith"
age: 25
Request
Responses
- 200
Successful response