Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust: Additional properties mixed & properties #383

Open
BelfordZ opened this issue Jun 11, 2021 · 0 comments
Open

Rust: Additional properties mixed & properties #383

BelfordZ opened this issue Jun 11, 2021 · 0 comments

Comments

@BelfordZ
Copy link
Member

BelfordZ commented Jun 11, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant