-
-
Couldn't load subscription status.
- Fork 246
Open
Labels
Description
current behavior
schema = {
"type": "object",
"properties": {
"github_url": { "type": "string", "nullable": true }
}
}
# => The property '#/github_url' of type null did not match the following type: string
JSON::Validator.validate!(schema, { "github_url" => null })
expected behavior
schema = {
"type": "object",
"properties": {
"github_url": { "type": "string", "nullable": true }
}
}
# => true
JSON::Validator.validate!(schema, { "github_url" => null })
also, without nullable attribute
schema = {
"type": "object",
"properties": {
"github_url": { "type": "string" }
}
}
# => The property '#/github_url' of type null did not match the following type: string
JSON::Validator.validate!(schema, { "github_url" => null })
ndbroadbent, belinskidima, TemaMix, Drowze, kstevens715 and 1 more