| | | 1 | | namespace UIBlazor.Processors.Models; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Represents a property definition within a JSON Schema. |
| | | 5 | | /// Supports recursive structures for nested objects and arrays. |
| | | 6 | | /// </summary> |
| | | 7 | | public class JsonSchemaProperty |
| | | 8 | | { |
| | 642 | 9 | | public string? Type { get; set; } = "object"; |
| | 0 | 10 | | public string? Title { get; set; } |
| | 32 | 11 | | public string? Description { get; set; } |
| | | 12 | | |
| | | 13 | | // Constraints |
| | 111 | 14 | | public List<object>? EnumValues { get; set; } |
| | 28 | 15 | | public double? Minimum { get; set; } |
| | 28 | 16 | | public double? Maximum { get; set; } |
| | 30 | 17 | | public int? MinLength { get; set; } |
| | 30 | 18 | | public int? MaxLength { get; set; } |
| | 28 | 19 | | public string? Pattern { get; set; } |
| | | 20 | | |
| | | 21 | | // Nested structures |
| | 272 | 22 | | public Dictionary<string, JsonSchemaProperty>? Properties { get; set; } |
| | | 23 | | |
| | 41 | 24 | | public JsonSchemaProperty? Items { get; set; } |
| | | 25 | | |
| | 270 | 26 | | public List<string> Required { get; set; } = []; |
| | | 27 | | } |