Class OpenApiReferenceableExtensions
- Namespace
- TypedRest.CodeGeneration
- Assembly
- TypedRest.CodeGeneration.dll
Provides extension methods for IOpenApiReferenceables.
public static class OpenApiReferenceableExtensions
- Inheritance
-
objectOpenApiReferenceableExtensions
Methods
Resolve(OpenApiSchema, OpenApiComponents)
Resolves the Reference in the schema, if present, using components.
public static OpenApiSchema Resolve(this OpenApiSchema schema, OpenApiComponents components)
Parameters
schemaOpenApiSchemacomponentsOpenApiComponents
Returns
Resolve<T>(T, IDictionary<string, T>)
Resolves the Reference in the referenceable, if present, using targets.
public static T Resolve<T>(this T referenceable, IDictionary<string, T> targets) where T : IOpenApiReferenceable
Parameters
referenceableTtargetsIDictionary<string, T>
Returns
- T
Type Parameters
T