Open SRetip opened 1 month ago
If I understand you correctly, I have corrected what was required:
TypeEntry
; TypeSpace::add_type_with_name(...)
method;// I think we should do it this way, because in this place we're iterating over all
// created types.
As for adding "Alias", I honestly can't think of a way to make it more user friendly. But otherwise the code will simply not compile without this.
P.S. The "Alias" post-fix is generated only when there is a name conflict.
Problem: If we try to generate schema from this schema:
we get:
where struct
FooBar
- structure from definition:and enum
FooBar
- enum which come from property definition:and as a result, we have a name conflict.
With my solution result will be:
I'd be happy to have a feedback :)