When defining a string property that has a list of allowed values but is also optional, the resulting jsonschema for Snowplow is wrong.
The result should include null in the list of values as so:
"state": {
"description": "The selection state",
"type": [
"string",
"null"
],
"enum": [
"checked",
"unchecked",
null
]
}
However, this is the generated jsonschema:
"state": {
"description": "The selection state",
"type": [
"string",
"null"
],
"enum": [
"checked",
"unchecked"
]
}