1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/src/lib/openapi
Thomas Heartman 4dec126199
feat: add OpenAPI spec to events controller. (#1754)
* Feat: add initial event schema

* Feat: add events-schema plus tests

* Feat(broken): add openapi validation to getEvents endpoint

* Add schema to basic events endpoint

* Feat: Add openapi for feature events

* Fix: fix recursive schema inclusion

* Feat: add test for recursive function

* Fix: make nullable fields nullable

* Fix: remove `ADMIN` permission for toggle events.

* fix: add new schemas to the snapshot

* Fix: remove recursive schema inclusion

* Feat: test feature events schema

* Fix: add correct permissions for feature events endpoint.

* Refactor: rename "name" to "featureName" for clearer docs

* Fix: Add missing "version" field to feature events

* Feat: add descriptions and extra responses to events endpoints.

* Fix: update openapi snapshot

* Simplify standard responses function

* Refactor: move endpoint descriptions into own file.

* Refactor: simplify type signature.

* Feat: specify type of data and preData properties to object

* Fix: update snapshot

* Refactor: move standard-responses into /util/ directory.
2022-06-30 08:12:34 +00:00
..
spec feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
util feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
endpoint-descriptions.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
index.test.ts fix: openapi spec should only include base path once (#1755) 2022-06-27 15:39:08 +02:00
index.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
validate.test.ts refactor: add OpenAPI schema to constraints controller (#1683) 2022-06-09 10:35:39 +02:00
validate.ts refactor: remove response data from schema validation logging (#1748) 2022-06-24 13:44:16 +02:00