1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-21 13:47:39 +02:00
unleash.unleash/src/lib/openapi/util/create-request-schema.test.ts
2022-09-06 13:22:41 +02:00

18 lines
456 B
TypeScript

import { createRequestSchema } from './create-request-schema';
test('createRequestSchema', () => {
expect(createRequestSchema('schemaName')).toMatchInlineSnapshot(`
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/schemaName",
},
},
},
"description": "schemaName",
"required": true,
}
`);
});