You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Json schema standard allows for a "$schema" property added to the root object of a json document. Many IDEs like VSCode can enforce schema/describe properties for the user.
I propose adding a special case for json-server to ignore the initial "$schema" : "./myapi-schema.json" node
This could eventually morph into support for emitting 405 Bad Request for incoming data that doesnt match schema but thats not in scope for this particular effort.
The text was updated successfully, but these errors were encountered:
Json schema standard allows for a "$schema" property added to the root object of a json document. Many IDEs like VSCode can enforce schema/describe properties for the user.
I propose adding a special case for json-server to ignore the initial
"$schema" : "./myapi-schema.json"
nodeSo FYI a db.json file would look like:
This could eventually morph into support for emitting 405 Bad Request for incoming data that doesnt match schema but thats not in scope for this particular effort.
The text was updated successfully, but these errors were encountered: