We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 589b94c commit 3647233Copy full SHA for 3647233
1 file changed
README.md
@@ -1271,7 +1271,11 @@ const exampleEndpoint = defaultEndpointsFactory.build({
1271
shortDescription: "Retrieves the user.", // <—— this becomes the summary line
1272
description: "The detailed explanaition on what this endpoint does.",
1273
input: z.object({
1274
- id: z.number().describe("the ID of the user").example(123),
+ id: z
1275
+ .string()
1276
+ .example("123") // input examples should be set before transformations
1277
+ .transform(Number)
1278
+ .describe("the ID of the user"),
1279
}),
1280
// ..., similarly for output and middlewares
1281
});
0 commit comments