Table of Contents

Class OpenApiReferenceableExtensions

Namespace
TypedRest.CodeGeneration
Assembly
TypedRest.CodeGeneration.dll

Provides extension methods for IOpenApiReferenceables.

public static class OpenApiReferenceableExtensions
Inheritance
object
OpenApiReferenceableExtensions

Methods

Resolve(OpenApiSchema, OpenApiComponents)

Resolves the Reference in the schema, if present, using components.

public static OpenApiSchema Resolve(this OpenApiSchema schema, OpenApiComponents components)

Parameters

schema OpenApiSchema
components OpenApiComponents

Returns

OpenApiSchema

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

referenceable T
targets IDictionary<string, T>

Returns

T

Type Parameters

T