mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
Chore: Allow the example keyword in params
This commit is contained in:
parent
f3b66e52d6
commit
45a3909618
@ -16,6 +16,10 @@ const ajv = new Ajv({
|
||||
|
||||
addFormats(ajv, ['date-time']);
|
||||
|
||||
// example was superseded by examples in openapi 3.1, but we're still on 3.0, so
|
||||
// let's add it back in!
|
||||
ajv.addKeyword('example');
|
||||
|
||||
export const validateSchema = (
|
||||
schema: SchemaId,
|
||||
data: unknown,
|
||||
|
Loading…
Reference in New Issue
Block a user