You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| schemaType | string `"object"` | Y | The schema response type, generally `"object"` or `"array"` |
410
-
| statusCode | string `"200"` | Y | The HTTP response code |
411
-
| ref | ?string `null` | Y | The OpenAPI schema (e.g. `"#/components/schemas/ModelName"` |
412
-
| [schema](#Schema) | ?string `null` | Y | An FQN describing a custom response schema. The class must have either one or more `#[OpenApiSchemaProperty]` attribute, implement `CustomSchemaInterface` or both. |
413
-
| description | ?string `null` | Y | Description of the response |
414
-
| mimeTypes | ?array `null` | Y | An array of mime types the response can, if null settings from swagger_bake config are used. |
415
-
| [associations](#Associations) | ?array `null` | N | Adds associated tables to the response sample schema, see examples below. |
416
-
| schemaFormat | ?string `null` | Y | The schema format, generally only used for schemaType of string. |
407
+
| Property | Type / Default | OA Spec | Description |
| schemaType | string `"object"` | Y | The schema response type: `"object"`, `"array"` or `"collection"` |
410
+
| statusCode | string `"200"` | Y | The HTTP response code |
411
+
| ref | ?string `null` | Y | The OpenAPI schema (e.g. `"#/components/schemas/ModelName"` |
412
+
| [schema](#Schema) | ?string `null` | Y | An FQN describing a custom response schema. The class must have either one or more `#[OpenApiSchemaProperty]` attribute, implement `CustomSchemaInterface` or both. |
413
+
| description | ?string `null` | Y | Description of the response |
414
+
| mimeTypes | ?array `null` | Y | An array of mime types the response can, if null settings from swagger_bake config are used. |
415
+
| [associations](#Associations) | ?array `null` | N | Adds associated tables to the response sample schema, see examples below. |
416
+
| schemaFormat | ?string `null` | Y | The schema format, generally only used for schemaType of string. |
417
417
418
418
Defining a multiple mimeTypes and 400-409 status code range and an expected 200 response:
0 commit comments