<PackageReference Include="NJsonSchema" Version="2.47.6012.36609" />

JsonSchemaAttribute

Annotation to specify the JSON Schema type for the given class.
using System; namespace NJsonSchema.Annotations { [AttributeUsage(AttributeTargets.Class)] public class JsonSchemaAttribute : Attribute { public JsonObjectType Type { get; set; } public string Format { get; set; } public Type ArrayItem { get; set; } public JsonSchemaAttribute() { Type = JsonObjectType.None; } public JsonSchemaAttribute(JsonObjectType type) { Type = type; } } }