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
We encountered this today in our project -- it seems closely connected to a change in Spring, from v4.0.0 to v4.1.1: rails/spring@21e272f. Is it possible you have a new version of Spring, and is it possible that downgrading will "resolve" this bug? If so, then it's a bug on Spring...
I'm using ruby 2.7.1 and rails 6.1
When validating the following json against the following schema, JSON::Validator.validate throws TypeError exception class/object
JSON:
[ { "name": "enable_customer_membership", "value": null }, { "name": "time_zone", "value": "Guam" }, { "name": "company_name", "value": "Demeter Trading Inc." }, ]
Schema:
{
"id": "https://celine.com/v1/setting.schema.json",
"title" : "Setting",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "name of setting"
},
"value": {
"anyOf": [
{ "type": "number" },
{ "type": "null" },
{ "type": "string" },
{ "type": "integer" },
{ "type": "boolean" }
]
}
},
"required": [ "name", "value" ]
}
}
The text was updated successfully, but these errors were encountered: