c13bfad16f
* feat: improve OpenAPI request contracts and examples * fix: align AJV docs plugin typing * fix: preserve runtime behavior for OpenAPI schemas * fix: align medication OpenAPI body schema with app payloads
11 lines
278 B
TypeScript
11 lines
278 B
TypeScript
import type { Plugin } from "ajv";
|
|
|
|
export const registerDocumentationSchemaKeywords: Plugin<unknown> = (ajv) => {
|
|
ajv.addKeyword({ keyword: "example", valid: true });
|
|
return ajv;
|
|
};
|
|
|
|
export const documentationSchemaAjv = {
|
|
plugins: [registerDocumentationSchemaKeywords],
|
|
};
|