Marwes / schemafy

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

feat: Use Option<SomeType> when type is ["SomeType", "null"] #12

Closed csssuf closed 6 years ago

csssuf commented 6 years ago

Partially addresses #10, but does not handle the any_of case. If you'd prefer I address both cases in this PR I can.

csssuf commented 6 years ago

Does that test look reasonable?

Marwes commented 6 years ago

Yup, looks good. I will make a release tonight.

csssuf commented 6 years ago

Thanks!