RicoSuter / NJsonSchema

JSON Schema reader, generator and validator for .NET
http://NJsonSchema.org
MIT License
1.37k stars 529 forks source link

Fix: Remove illegal characters before returning to reserved list #1683

Closed lorenyaSICKAG closed 2 months ago

lorenyaSICKAG commented 5 months ago

This fixes a problem, that multiple same-named types was generated and only the first wins. Thats when a illegal character was removed. The reserved list was comparing to the type name WITH the illegal character, but the type name was stored WITHOUT the illegal character - and so couldn't find a match.