1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/src/lib/openapi/util
Nuno Góis fb94138c5c
chore: support full path schemas (#5723)
This backwards compatible change allows us to specify a schema `id`
(full path) which to me feels a bit better than specifying the schema
name as a string, since a literal string is prone to typos.

### Before

```ts
requestBody: createRequestSchema(
    'createResourceSchema',
),
responses: {
    ...getStandardResponses(400, 401, 403, 415),
    201: resourceCreatedResponseSchema(
        'resourceSchema',
    ),
},
```

### After

```ts
requestBody: createRequestSchema(
    createResourceSchema.$id,
),
responses: {
    ...getStandardResponses(400, 401, 403, 415),
    201: resourceCreatedResponseSchema(
        resourceSchema.$id,
    ),
},
```
2023-12-22 08:17:23 +00:00
..
all-of.ts chore: token api simplification (#4600) 2023-09-04 16:02:24 +02:00
api-operation.ts
create-request-schema.test.ts
create-request-schema.ts chore: support full path schemas (#5723) 2023-12-22 08:17:23 +00:00
create-response-schema.test.ts
create-response-schema.ts chore: support full path schemas (#5723) 2023-12-22 08:17:23 +00:00
from-query-params.ts refactor: type query params (#5153) 2023-10-26 10:05:47 +02:00
index.ts
openapi-tags.test.ts openapi: sort tags file (#4595) 2023-09-01 10:15:12 +00:00
openapi-tags.ts chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288) 2023-11-28 09:32:00 +00:00
standard-responses.ts openapi: update API tokens tag (#4137) 2023-07-06 07:30:31 +00:00