1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-15 17:50:48 +02:00
unleash.unleash/src/lib/routes
Thomas Heartman 6afc0a6954
fix: fix broken OpenAPI spec (#1846)
* Wip: fix openapi spec

* Feat: add openapi enforcer for enforcing the generated schema

* Chore: Allow the example keyword in params

* Feat: add validator tests and fix some errors

* Use @apidevtools/swagger-parser for schema validation

* Wip: refactor tests for updated schema name

* Feat: update request params creation method

* Feat: add query params to state

* Refactor: move mapping test into separate function

* Refactor: rename request-parameters -> query-parameters

* Refactor: expose only finished query parameters

* Wip: fixup param types

* Refactor: remove unused types

* Chore: rename and cleanup

* Chore: cleanup

* Fix: Update snapshot

* Fix: use ?? Instead of paramToBool to get defaults

* Wip: generate query param object type from openapi params list

* Wip: use generated types for export query params

* Revert "Fix: use ?? Instead of paramToBool to get defaults"

This reverts commit 842567500b.

Because we accept bools, strings, and numbers, this is the only way to
do it.

* Chore: update and pin json-schema-to-ts

* Fix: use `&` to merge types

* Update snapshot

* Chore: rename export-parameters-schema -> export-query-parameters

When it ends in `schema`, the tests expect it to be included in the
openapi index file.
2022-07-28 09:19:58 +02:00
..
admin-api fix: fix broken OpenAPI spec (#1846) 2022-07-28 09:19:58 +02:00
auth Refactor: move openapi utils into /util directory (#1777) 2022-07-01 08:06:33 +02:00
client-api Refactor: move openapi utils into /util directory (#1777) 2022-07-01 08:06:33 +02:00
api-def.ts fix: convert api-def.js to tyoescript 2021-09-14 20:07:05 +02:00
backstage.test.ts feat: add support for cdnPrefix for static assets (#1191) 2022-01-06 10:31:00 +01:00
backstage.ts Feat/options need types (#794) 2021-04-22 10:07:10 +02:00
controller.ts refactor: always accept any content type for GET reqs (#1672) 2022-06-07 09:32:18 +02:00
health-check.test.ts task: update health endpoint to only say if express is ready (#1847) 2022-07-22 11:47:58 +02:00
health-check.ts task: update health endpoint to only say if express is ready (#1847) 2022-07-22 11:47:58 +02:00
index.test.ts feat: add support for cdnPrefix for static assets (#1191) 2022-01-06 10:31:00 +01:00
index.ts refactor: add OpenAPI schema to simple-password-provider controller (#1734) 2022-06-23 08:40:25 +01:00
logout.test.ts feat: add option to disable 'Clear-Site-Data' header on logout (#1645) 2022-06-03 11:50:58 +02:00
logout.ts feat: add option to disable 'Clear-Site-Data' header on logout (#1645) 2022-06-03 11:50:58 +02:00
unleash-types.ts fix: convert xtract-user.js to typescript 2021-09-14 19:58:48 +02:00
util.ts refactor: replace ts-ignore with ts-expect-error (#1675) 2022-06-07 11:49:17 +02:00