1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi
Thomas Heartman 80cf27476b
openapi: enable allErrors and update snapshots (#3622)
## What

This PR changes our AJV configuration to return all errors it finds with
a schema instead of stopping at the first one.

Because of this, a number of the snapshot tests that we have must be
updated.

## Why

DX! As someone using an API: if I send a faulty request, I'd rather have
the API tell me about the five things that are wrong than for me to
learn about one thing, send a new request, learn about another thing,
send a new request, .... etc.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-28 12:56:00 +00:00
..
spec openapi: enable allErrors and update snapshots (#3622) 2023-04-28 12:56:00 +00:00
util feat: unify error responses (#3607) 2023-04-25 13:40:46 +00:00
endpoint-descriptions.ts fix: Fix broken OpenAPI (#2379) 2022-11-10 22:55:01 +01:00
index.test.ts docs: Added docs for edge endpoints (#3501) 2023-04-14 15:39:39 +02:00
index.ts Feat: project default strategy (#3644) 2023-04-28 14:59:04 +03:00
meta-schema-rules.test.ts docs: Metrics tag openapi docs (#3572) 2023-04-26 12:10:57 +02:00
validate.test.ts
validate.ts openapi: enable allErrors and update snapshots (#3622) 2023-04-28 12:56:00 +00:00