Closed jamesrusso closed 10 months ago
This makes using validation not possible since I cannot export both from a file.
Works without issues for me, can you provide a reproduction repo?
closing this, if you still have problems please open an issue with a reproduction.
Library version: 1.6.2
JSON schema version: draft-07
I am willing to contribute to fix the issue 💚
The current behavior
The exported code includes the same name for both the type and the object.
This makes using validation not possible since I cannot export both from a file.
The expected behavior
I would think it would be better to be able to name these differently, one representing the type and one representing the object.
Why does it happen? What/How to fix the issue?
The code currently just uppercases the first character and uses that as the type name.
Content of minimal json schema file which causes the problem
I will provide a more concrete example to this ticket