We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6869327 commit a4267e5Copy full SHA for a4267e5
lib/validation.js
@@ -216,6 +216,7 @@ function compileResponseValidationSchema() {
216
allErrors: true
217
});
218
compiler.addSchema(Object.values(instance.getSchemas()));
219
+ compiler.addKeyword('example');
220
for (const [code, schema] of schemas) {
221
validators[code] = compiler.compile(schema);
222
}
src/validation.ts
@@ -262,6 +262,7 @@ export function compileResponseValidationSchema(this: FastifyInstance): void {
262
})
263
264
compiler.addSchema(Object.values(instance.getSchemas()))
265
+ compiler.addKeyword('example')
266
267
268
validators[code] = compiler.compile(schema)
0 commit comments