transpiler icon indicating copy to clipboard operation
transpiler copied to clipboard

Rust: Additional properties mixed & properties

Open BelfordZ opened this issue 4 years ago • 0 comments

There are a few different types of object schemas

  1. properties is used, additional props unused
  2. props unused, addtional props used
  3. both are used

at least for now, when additional props is used on its own, we should give the type HashMap<String, ..>.

If just props is used, it should be a simple struct.

If both are used, it should be a struct alongside a flattened AdditionalProps field.

BelfordZ avatar Jun 11 '21 22:06 BelfordZ