Skip to content

Commit

Permalink
fix(tests): v5 strict schema
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeLLLa committed Sep 19, 2024
1 parent 54faebd commit c4d614f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/__tests__/route-metrics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,16 @@ describe('route metrics', () => {
});
app.get(
'/test',
{ schema: { querystring: { r: { type: 'string' } } } },
{
schema: {
querystring: {
type: 'object',
properties: {
r: { type: 'string' },
},
},
},
},
async (request, reply) => {
await reply
.code(parseInt((request.query as { r: string }).r))
Expand Down

0 comments on commit c4d614f

Please sign in to comment.