Open jaredponn opened 5 months ago
This PR removes the restriction of generating code instances for only non empty JSON objects.
Indeed, the empty JSON object
{}
is valid JSON, so schemas like
record MyEmptyRecord = { } derive Json MyEmptyRecord
should be valid.
This PR removes the restriction of generating code instances for only non empty JSON objects.
Indeed, the empty JSON object
is valid JSON, so schemas like
should be valid.