Home Ref Class
Ref Class
Cancel

Ref Class

Namespace: Json.Schema.Api.OpenApi

Inheritance: Ref 🡒 object

Allows customization of $ref resolutions.

Properties

NameTypeSummary
FetchFetchFuncGets or sets the $ref fetching function. Set to null to disable automatic fetching.

Methods

FetchJson(Uri uri)

Defines a default basic fetching function that uses an System.Net.Http.HttpClient and supports YAML and JSON content.

Declaration

1
public static Task<JsonElement?> FetchJson(Uri uri)
ParameterTypeDescription
uriUriThe resource URI

Returns

The document content

Contents