Files
medusa-store/packages
Patrick 48ad2426aa feat(oas): identify required fields in responses - admin (#3278)
## Scope

Admin routes

## What

Add OAS `required` to response schemas.

## Why

Code generator can use the `required` property of a schema to mark fields as optional or not when generating TS types.

## Test

* Run `yarn build`
* Run `yarn openapi:generate`
* Run `yarn redocly preview-docs docs/api/admin/openapi.yaml --config=docs-util/redocly/config.yaml`
* Open the documentation preview URL in a browser (http://127.0.0.1:8080)
* Expect responses to have their fields declared as `required`
2023-02-17 14:19:13 +00:00
..
2023-02-14 17:30:40 +01:00
2023-02-14 17:30:40 +01:00
2023-02-14 17:30:40 +01:00
2023-02-14 17:30:40 +01:00
2023-02-14 17:27:43 +01:00