When the OpenAPI 3.0 schema defines multi-level inheritance the generated children also have AdditionalProperties, which leads to the following runtime error:
System.InvalidOperationException: 'The type 'TypeADerived' cannot have more than one member that has the attribute 'System.Text.Json.Serialization.JsonExtensionDataAttribute'.'
When the OpenAPI 3.0 schema defines multi-level inheritance the generated children also have
AdditionalProperties
, which leads to the following runtime error:System.InvalidOperationException: 'The type 'TypeADerived' cannot have more than one member that has the attribute 'System.Text.Json.Serialization.JsonExtensionDataAttribute'.'
NSwag: 13.15.9 Serialization:
System.Text.Json
OpenAPI definition:
Generated model: