Schemas
This page was deprecating! Please use Schemator middleware
Swagger documentation generated based on schemas
Validation
Types of validation
app.get(
'/',
{
schema: {
headers: {
type: 'object',
properties: {
authorization: { type: 'string' }
}
},
query: false,
params: false,
cookies: false
}
},
async () => ({ hello: 'world' })
);
app.listen(4000);Serialization
Types of serialization
HTTP Code-based serialization
Last updated