Open cale-at-reify opened 1 year ago
The current definition for s/tuple is such that transforming (s/tuple ::sort-column ::sort-order) to json-schema results in
s/tuple
(s/tuple ::sort-column ::sort-order)
"sort-by": { "type": { "type": "array", "items": [ { "type": "array", "items": { "type": "string" }, "description": "A tuple of [axis, column] describing a log-format column" }, { "enum": ["desc", "asc"] } ] } }
The correct definition uses anyOf.
anyOf
"sort-by": { "type": { "type": "array", "items": { "anyOf": [ { "type": "array", "items": { "type": "string" }, "description": "A tuple of [axis, column] describing a log-format column" }, { "enum": ["desc", "asc"] } ] } } }
The current definition for
s/tuple
is such that transforming(s/tuple ::sort-column ::sort-order)
to json-schema results inThe correct definition uses
anyOf
.