lambda-buffers icon indicating copy to clipboard operation
lambda-buffers copied to clipboard

Allow empty records for JSON generation

Open jaredponn opened this issue 1 year ago • 0 comments

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.

jaredponn avatar Apr 09 '24 07:04 jaredponn