guardrail-dev / guardrail

Principled code generation from OpenAPI specifications
https://guardrail.dev
MIT License
526 stars 133 forks source link

Circe - fully qualify references within component classes #2051

Open Jonnty opened 2 weeks ago

Jonnty commented 2 weeks ago

Previously, when a property was named the same as its component, references to the component class and property class conflicted, causing errors. Fully qualifying the references to each should prevent this from happening.

A regression test covering a minimal failing case is included.

Fixes issue #2050

Jonnty commented 2 weeks ago

Just realised I didn't include the updated TypesTest expectations - added that now.