Repository navigation
Replies: 1 comment
|
The For your existing module, add a distinct ID to the imported wrapper, preserving its definitions and reference: fastify.addSchema({
...customerSchemaModule.Import('Customer'),
$id: 'CustomerApi',
});
fastify.post('/customers', {
schema: {
body: { $ref: 'CustomerApi#' },
response: {
200: { $ref: 'CustomerApi#' },
},
},
}, async (request) => request.body);
Also, Verified with Fastify 5.3.3 and This addresses the |
Uh oh!
There was an error while loading. Please reload this page.
Is throwing an error
All reactions