fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #3507 from hey-api/docs/zod-valibot-metadata-2

docs: expand metadata section for zod and valibot

authored by

Lubos and committed by
GitHub
c3055895 c6e182f0

+6 -4
+3 -2
docs/openapi-ts/plugins/valibot.md
··· 221 221 ); 222 222 ``` 223 223 224 + <!-- prettier-ignore-start --> 224 225 ```js [config] 225 226 export default { 226 227 input: 'hey-api/backend', // sign up at app.heyapi.dev ··· 229 230 // ...other plugins 230 231 { 231 232 name: 'valibot', 232 - metadata({ $, node, schema }) { 233 - // [!code ++] 233 + metadata({ $, node, schema }) { // [!code ++] 234 234 node.prop('hasTitle', $.literal(Boolean(schema.title))); // [!code ++] 235 235 node.prop('createdAt', $.literal(Date.now())); // [!code ++] 236 236 }, // [!code ++] ··· 238 238 ], 239 239 }; 240 240 ``` 241 + <!-- prettier-ignore-end --> 241 242 242 243 ::: 243 244
+3 -2
docs/openapi-ts/plugins/zod.md
··· 275 275 }); 276 276 ``` 277 277 278 + <!-- prettier-ignore-start --> 278 279 ```js [config] 279 280 export default { 280 281 input: 'hey-api/backend', // sign up at app.heyapi.dev ··· 283 284 // ...other plugins 284 285 { 285 286 name: 'zod', 286 - metadata({ $, node, schema }) { 287 - // [!code ++] 287 + metadata({ $, node, schema }) { // [!code ++] 288 288 node.prop('hasTitle', $.literal(Boolean(schema.title))); // [!code ++] 289 289 node.prop('createdAt', $.literal(Date.now())); // [!code ++] 290 290 }, // [!code ++] ··· 292 292 ], 293 293 }; 294 294 ``` 295 + <!-- prettier-ignore-end --> 295 296 296 297 ::: 297 298