OpenApiReferencableExtensions.ResolveReference Method

Definition

Resolves a JSON Pointer with respect to an element, returning the referenced element.

public static Microsoft.OpenApi.Interfaces.IOpenApiReferenceable ResolveReference (this Microsoft.OpenApi.Interfaces.IOpenApiReferenceable element, Microsoft.OpenApi.JsonPointer pointer);
static member ResolveReference : Microsoft.OpenApi.Interfaces.IOpenApiReferenceable * Microsoft.OpenApi.JsonPointer -> Microsoft.OpenApi.Interfaces.IOpenApiReferenceable
<Extension()>
Public Function ResolveReference (element As IOpenApiReferenceable, pointer As JsonPointer) As IOpenApiReferenceable

Parameters

element
IOpenApiReferenceable

The referencable Open API element on which to apply the JSON pointer

pointer
JsonPointer

a JSON Pointer RFC 6901.

Returns

The element pointed to by the JSON pointer.

Applies to