chore: bump @kevisual/router to version 0.0.80, update QueryApi to handle optional fields in metadata args, and enhance JSON Schema conversion
This commit is contained in:
@@ -24,7 +24,7 @@ app.route({
|
||||
description: 'First demo route demonstrating string and number parameters',
|
||||
metadata: {
|
||||
args: {
|
||||
username: z.string().min(3).max(20).describe('The username to be validated, must be between 3 and 20 characters'),
|
||||
username: z.string().min(3).max(20).optional().describe('The username to be validated, must be between 3 and 20 characters'),
|
||||
age: z.number().min(18).max(100).describe('The age of the user, must be between 18 and 100'),
|
||||
email: z.email().describe('The email address of the user for notification purposes'),
|
||||
count: z.number().int().positive().describe('The number of items to process, must be a positive integer'),
|
||||
|
||||
Reference in New Issue
Block a user