Home To Class
To Class
Cancel

To Class

Namespace: Json.Schema.Api.OpenApi

Inheritance: To 🡒 object

Provides factory methods for creating references to objects in the components collection.

Methods

Callback(string componentName)

Creates a reference to a callback.

Declaration

1
public static CallbackRef Callback(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the callback.

Returns

The reference.

Example(string componentName)

Creates a reference to a example.

Declaration

1
public static ExampleRef Example(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the example.

Returns

The reference.

Header(string componentName)

Creates a reference to a header.

Declaration

1
public static HeaderRef Header(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the header.

Returns

The reference.

Link(string componentName)

Creates a reference to a link.

Declaration

1
public static LinkRef Link(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the link.

Returns

The reference.

Parameter(string componentName)

Creates a reference to a parameter.

Declaration

1
public static ParameterRef Parameter(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the parameter.

Returns

The reference.

PathItem(string componentName)

Creates a reference to a path item.

Declaration

1
public static PathItemRef PathItem(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the path item.

Returns

The reference.

RequestBody(string componentName)

Creates a reference to a request body.

Declaration

1
public static RequestBodyRef RequestBody(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the request body.

Returns

The reference.

Response(string componentName)

Creates a reference to a response.

Declaration

1
public static ResponseRef Response(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the response.

Returns

The reference.

Schema(string componentName)

Creates a reference to a schema.

Declaration

1
public static JsonSchema Schema(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the schema.

Returns

The reference.

SecurityScheme(string componentName)

Creates a reference to a security scheme.

Declaration

1
public static SecuritySchemeRef SecurityScheme(string componentName)
ParameterTypeDescription
componentNamestringThe key that identifies the security scheme.

Returns

The reference.

Contents