corvus-dotnet / Corvus.JsonSchema

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

Add a switch to allow implicit string conversion #399

Closed mwadams closed 2 weeks ago

mwadams commented 1 month ago

This is a more complex issue than simply allowing an implicit string conversion.

It would be a breaking change for existing .NET 8.0 clients as the explicit conversion is required by the interface, and an implicit conversion is distinct from an explicit conversion.

mwadams commented 2 weeks ago

The proposal is to make the breaking change in V3.1. This would require you to regenerate your types using the V3.1 code generator to make use of V3.1 Corvus.Json.ExtendedTypes.

It still generates the explicit operator on the type as today, so the only impact on downstream consumers would be those who depend on the IJsonString<T> interface directly; these should be minimal.

mwadams commented 2 weeks ago

This is now available in 4.0.0-preview.8