Closed alxarch closed 2 years ago
Seems to require jsonShorthand: false option on the server to work as expected. Somehow getSchemaAnyway is called and unless jsonShorthand is set to false it wraps the schema into
jsonShorthand: false
jsonShorthand
false
{ "type": "object", "properties": [ZodSchema] }
instead of the expected bare schema
Can you create a reproduction, please? https://stackblitz.com
https://stackblitz.com/edit/json-server-cyu7wd?file=index.js
Having the same problem
Fix PR is up
Seems to require
jsonShorthand: false
option on the server to work as expected. Somehow getSchemaAnyway is called and unlessjsonShorthand
is set tofalse
it wraps the schema intoinstead of the expected bare schema