corvus-dotnet / Corvus.JsonSchema

Support for Json Schema validation and entity generation
Apache License 2.0
99 stars 9 forks source link

generator: --outputRootTypeName has no effect when the root type is $ref #400

Closed shuebner closed 1 month ago

shuebner commented 1 month ago

This worked until 3.0.27 and does not work in 4.0.0-preview.1 anymore.

When the schema root type is defined via $ref, then the --outputRootTypeName CLI option has no effect.

I have used that switch to shorten filenames a bit because the $refed name is a bit long and will be included in every filename throughout the whole schema.

mwadams commented 1 month ago

I can repro that and will fix it in the next preview build. (Which I am hoping to release tomorrow.)

mwadams commented 1 month ago

Fixed in 4.0.0-preview.2