Include unspecified additional properties in structure layout. #59
Labels
enhancement
New feature or request
scope:gen:json-schema
Related to the JSON Schema generator
scope:syntax
Related to the syntax of TreeLDR
For now TreeLDR structure layouts are composed of a list of expected fields. Additional unspecified fields appearing in an instance of such layout will be rejected (and an error raised). However it is sometime useful to capture additional unspecified fields in the layout, for instance like so:
This special
*
field will catch any additional property in a map in the generated code, here in Rust:The text was updated successfully, but these errors were encountered: