CRD generation will fail when a field uses {} as default value.
–– Pkl Error ––
Expected value of type `Boolean|Number|Null|String|Dynamic|Typed|Listing`, but got type `Mapping`.
Value: new Mapping {}
39 | typealias JsonSchemaValue = Boolean|Number|Null|String|Dynamic|Typed|Listing
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at org.json_schema.JsonSchema#default (projectpackage://pkg.pkl-lang.org/pkl-pantry/org.json_schema@1.0.0#/JsonSchema.pkl)
101 | default = raw.getOrNull("default")
^^^^^^^^^^^^^^^^^^^^^^^^
at org.json_schema.Parser#toJsonSchema.default (projectpackage://pkg.pkl-lang.org/pkl-pantry/org.json_schema@1.0.0#/Parser.pkl)
......
CRD generation will fail when a field uses
{}
as default value.A minimal CRD to reproduce the problem: