Allow constant string as object key
Chlumsky opened this issue · 1 comments
Chlumsky commented
Currently, only a StringType can be a key for object types. Make it possible to also use ConstStringType as such.
Chlumsky commented
In the end, object key can be of any type, even non-string. This can result in invalid JSON, but only if it is imposed by the user's input structure. Maybe a warning is in order in such cases.