-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
schemas/common/all-types.json
Outdated
{ "type": ["boolean", "null", "number", "string", "array"] }, | ||
{ | ||
"type": "object", | ||
"minProperties": 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjenny
@lina-salih
We should also allow object
with single keys if their name isn't an operator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done :)
schemas/common/any-wo-array.json
Outdated
"$id": "http://jsonlogic.com/schemas/common/any-wo-array.json", | ||
|
||
"title": "All", | ||
"description": "Any valid JSON Logic data source.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe clarify that this comes without array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like Any valid JSON logic data source other than array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjenny done
fixes #15
Changes:
array
type for single arg checksanyOf
withoneOf
object
type, if object is empty, has more than 2 keys, or single key does not match existing operator name?:
alias forif