grantila / typeconv

Convert between JSON Schema, TypeScript, GraphQL, Open API and SureType
MIT License
421 stars 8 forks source link

highlights bug in https://github.com/grantila/typeconv/issues/11 #12

Closed chrismatheson closed 3 years ago

chrismatheson commented 3 years ago

Hi,

Ive knocked together a quick example that highlights the bug described in https://github.com/grantila/typeconv/issues/11

FWIW I experimented with a level tests trying to be "gold masters" with know inputs outputs and command line options. I thought this might make it significantly easier to have contributors capture their observed behaviour as a test case.

grantila commented 3 years ago

Thanks for this 👍

I refactored this and merged it with the fix