Open b-nijhuis-innovadis opened 8 months ago
We use constructions like:
IExample.cs
namespace Example; public interface IExample { DateTime? DateOfBirth { get; } }
Example.cs
namespace Example; public record Example(DateTime DateOfBirth) : IExample { DateTime? IExample.DateOfBirth => DateOfBirth; }
Since the latest version, this results in the property being added to the document, which is not what we want:
"Example": { "type": "object", "additionalProperties": false, "required": [ "dateOfBirth" ], "properties": { "dateOfBirth": { "type": "string", "format": "date-time" }, "example.IExample.DateOfBirth": { "type": "string", "format": "date-time", "nullable": true } } }
The property is then added to the TypeScript client. How can we disable or workaround this?
In the meantime, I use the [JsonSchemaIgnore] attribute on each property. Still hope there is (or will be) a better solution for this.
This can be related to the #4681.
We use constructions like:
IExample.cs
Example.cs
Since the latest version, this results in the property being added to the document, which is not what we want:
The property is then added to the TypeScript client. How can we disable or workaround this?