Marwes / schemafy

Crate for generating rust types from a json schema
MIT License
242 stars 51 forks source link

Couldn't generate from a schema with `+1` and `-1` in the same struct #60

Open kenkoooo opened 2 years ago

kenkoooo commented 2 years ago

Thank you so much for creating an awesome library! It helped me a lot. I found the following issue while using it.

schemafy couldn't generate a schema of GitHub webhook event payloads because of duplicated field declaration. The root cause is that the schema has fields +1 and -1 in the same struct, and schemafy converts both to _1.

schema: https://unpkg.com/@octokit/webhooks-schemas@6.3.6/schema.json