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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Given the following jsoncschema7, quicktype seems to:
Is there a way to get them to work as expected.
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "city": { "type": "string", "default": "Augusta" }, "name": { "type": "string", "description": "The name of the person." }, "contactInformation": { "type": "object", "properties": { "email": { "type": "object", "properties": { "type": { "type": "string", "enum": ["personal", "work"] }, "value": { "type": "string", "format": "email", "const": "@awesome.unit" } }, "required": ["type", "value"] }, "phone": { "type": "object", "properties": { "type": { "type": "string", "enum": ["home", "mobile"] }, "value": { "type": "string", "pattern": "^[0-9]{10}$" } } } } } }, "required": ["city", "name", "contactInformation"] }
Thanks for a great tool, btw.
Beta Was this translation helpful? Give feedback.
All reactions