Show / Hide Table of Contents

Class JsonSchemaReferenceUtilities

Provides utilities to resolve and set JSON schema references.

Inheritance
System.Object
JsonSchemaReferenceUtilities
Namespace: Stac.Api.CodeGen
Assembly: Stac.Api.CodeGen.dll
Syntax
public static class JsonSchemaReferenceUtilities : object

Methods

| Improve this Doc View Source

UpdateSchemaReferencePaths(Object)

Updates the properties from the available properties with inlining external references.

Declaration
public static void UpdateSchemaReferencePaths(object rootObject)
Parameters
Type Name Description
System.Object rootObject

The root object.

| Improve this Doc View Source

UpdateSchemaReferencePaths(Object, Boolean, IContractResolver)

Updates the properties from the available properties.

Declaration
public static void UpdateSchemaReferencePaths(object rootObject, bool removeExternalReferences, IContractResolver contractResolver)
Parameters
Type Name Description
System.Object rootObject

The root object.

System.Boolean removeExternalReferences

Specifies whether to remove external references (otherwise they are inlined).

IContractResolver contractResolver

The contract resolver.

| Improve this Doc View Source

UpdateSchemaReferencesAsync(Object, JsonReferenceResolver, CancellationToken)

Updates all properties from the available properties.

Declaration
public static Task UpdateSchemaReferencesAsync(object rootObject, JsonReferenceResolver referenceResolver, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.Object rootObject

The root object.

JsonReferenceResolver referenceResolver

The JSON document resolver.

CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task
| Improve this Doc View Source

UpdateSchemaReferencesAsync(Object, JsonReferenceResolver, IContractResolver, CancellationToken)

Updates all properties from the available properties.

Declaration
public static Task UpdateSchemaReferencesAsync(object rootObject, JsonReferenceResolver referenceResolver, IContractResolver contractResolver, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.Object rootObject

The root object.

JsonReferenceResolver referenceResolver

The JSON document resolver.

IContractResolver contractResolver

The contract resolver.

CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX