Skip to content

[BUG]: C# Not Generating [JsonRequired] or [Required] Annotation #2696

@cawoodm

Description

@cawoodm

With CSharp, required properties are not annotated as such:

Image

Indeed the "Fail if required properties are missing" option seems to do nothing.

Current Output

[JsonPropertyName("vatCode")]
public string VatCode { get; set; }

Expected Output:

[JsonRequired]
[JsonPropertyName("vatCode")]
public string VatCode { get; set; }

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions