| | | 1 | | namespace Kestrun.OpenApi; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Set of discovered OpenAPI component types. |
| | | 5 | | /// </summary> |
| | | 6 | | public sealed class OpenApiComponentSet |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Schema types available for reuse in the specification. |
| | | 10 | | /// </summary> |
| | 12 | 11 | | public IReadOnlyList<Type> SchemaTypes { get; init; } = []; |
| | | 12 | | /// <summary> |
| | | 13 | | /// Parameter types available for reuse in the specification. |
| | | 14 | | /// </summary> |
| | 8 | 15 | | public IReadOnlyList<Type> ParameterTypes { get; init; } = []; |
| | | 16 | | /// <summary> |
| | | 17 | | /// Response types available for reuse in the specification. |
| | | 18 | | /// </summary> |
| | 9 | 19 | | public IReadOnlyList<Type> ResponseTypes { get; init; } = []; |
| | | 20 | | /// <summary> |
| | | 21 | | /// Example types available for reuse in the specification. |
| | | 22 | | /// </summary> |
| | 12 | 23 | | public IReadOnlyList<Type> ExampleTypes { get; init; } = []; |
| | | 24 | | /// <summary> |
| | | 25 | | /// Request body types available for reuse in the specification. |
| | | 26 | | /// </summary> |
| | 10 | 27 | | public IReadOnlyList<Type> RequestBodyTypes { get; init; } = []; |
| | | 28 | | /// <summary> |
| | | 29 | | /// Header types available for reuse in the specification. |
| | | 30 | | /// </summary> |
| | 9 | 31 | | public IReadOnlyList<Type> HeaderTypes { get; init; } = []; |
| | | 32 | | /// <summary> |
| | | 33 | | /// Link types available for reuse in the specification. |
| | | 34 | | /// </summary> |
| | 4 | 35 | | public IReadOnlyList<Type> LinkTypes { get; init; } = []; |
| | | 36 | | /// <summary> |
| | | 37 | | /// Callback types available for reuse in the specification. |
| | | 38 | | /// </summary> |
| | 4 | 39 | | public IReadOnlyList<Type> CallbackTypes { get; init; } = []; |
| | | 40 | | /// <summary> |
| | | 41 | | /// Path item types available for reuse in the specification. |
| | | 42 | | /// </summary> |
| | 4 | 43 | | public IReadOnlyList<Type> PathItemTypes { get; init; } = []; |
| | | 44 | | |
| | | 45 | | //public IReadOnlyList<Type> ExtensionTypes { get; init; } = []; |
| | | 46 | | /// <summary> |
| | | 47 | | /// Security scheme types available for reuse in the specification. |
| | | 48 | | /// </summary> |
| | 4 | 49 | | public IReadOnlyList<Type> SecuritySchemeTypes { get; init; } = []; |
| | | 50 | | } |