1
0
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:
Thomas Heartman 2022-07-20 14:37:28 +02:00
parent f3b66e52d6
commit 45a3909618

View File

@ -16,6 +16,10 @@ const ajv = new Ajv({
addFormats(ajv, ['date-time']); 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 = ( export const validateSchema = (
schema: SchemaId, schema: SchemaId,
data: unknown, data: unknown,