# Schema with examples array (OAS 3.1)

`POST /schema-examples-array`

Tags: `schemaExamples`

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:
```yaml
schema:
  type: object
  properties:
    name:
      type: string
    age:
      type: integer
  examples:
    - name: 'John Doe'
      age: 30
    - name: 'Jane Smith'
      age: 25
```

## Request body (required)

Request body with schema.examples array

### Content type: `application/json`

Schema: `object` (examples: `{"name":"John Doe","age":30}`, `{"name":"Jane Smith","age":25}`)

- `name` (string)
- `age` (integer)

## Responses

### 200

Successful response

#### Content type: `application/json`

Schema: `object` (examples: `{"id":1,"message":"User created successfully"}`, `{"id":2,"message":"User updated successfully"}`)

- `id` (integer)
- `message` (string)
