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
I have a field in JSON which may either just have a DATE in yyyy-MM-dd format or DATETIME in yyyy-MM-dd HH:mm:ss format. Similar to java.time.format.DateTimeFormatterBuilder where we can append optional formats to a base format, is there any way to do the same in everit without defining our own custom date format validator or any other code changes?
type: "string",
format: "date",
format:"time"
Regards
Jacob
The text was updated successfully, but these errors were encountered:
Hello, adding duplicate keys to the schema json won't work, since keys in json should be unique (parsers will either throw an error, or pick one of the provided values).
On the other hand, you can do this with the "anyOf" json schema keyword as follows:
By the way, this library is in maintenance mode, and it is very unlikely to see newer releases (and also won't support the latest version of json schema). I suggest migrating to https://github.com/erosb/json-sKema
Hi,
I have a field in JSON which may either just have a DATE in yyyy-MM-dd format or DATETIME in yyyy-MM-dd HH:mm:ss format. Similar to java.time.format.DateTimeFormatterBuilder where we can append optional formats to a base format, is there any way to do the same in everit without defining our own custom date format validator or any other code changes?
type: "string",
format: "date",
format:"time"
Regards
Jacob
The text was updated successfully, but these errors were encountered: