OpenApiComponentClone.Clone method (1 of 32)

Clones a dictionary of OpenApiExample instances.

public static IDictionary<string, IOpenApiExample>? Clone(
    this IDictionary<string, IOpenApiExample>? examples)
parameter description
examples The dictionary to clone.

Return Value

A new dictionary with cloned OpenApiExample instances.

See Also


OpenApiComponentClone.Clone method (2 of 32)

Clones a dictionary of OpenApiExtension instances.

public static IDictionary<string, IOpenApiExtension>? Clone(
    this IDictionary<string, IOpenApiExtension>? extensions)
parameter description
extensions The dictionary to clone.

Return Value

A new dictionary with cloned OpenApiExtension instances.

See Also


OpenApiComponentClone.Clone method (3 of 32)

Clones a dictionary of IOpenApiHeader instances.

public static IDictionary<string, IOpenApiHeader>? Clone(
    this IDictionary<string, IOpenApiHeader>? headers)
parameter description
headers The dictionary of headers to clone.

Return Value

A new dictionary with cloned IOpenApiHeader instances.

See Also


OpenApiComponentClone.Clone method (4 of 32)

Clones a dictionary of IOpenApiLink instances.

public static IDictionary<string, IOpenApiLink>? Clone(
    this IDictionary<string, IOpenApiLink>? links)
parameter description
links The dictionary of IOpenApiLink instances to clone.

Return Value

A new dictionary containing cloned IOpenApiLink instances.

See Also


OpenApiComponentClone.Clone method (5 of 32)

Clones a dictionary of OpenApiSchema instances.

public static Dictionary<string, IOpenApiSchema>? Clone(
    this IDictionary<string, IOpenApiSchema>? schemas)
parameter description
schemas The dictionary to clone.

Return Value

A new dictionary containing cloned OpenApiSchema instances.

See Also


OpenApiComponentClone.Clone method (6 of 32)

Clones a dictionary of OpenApiMediaType instances.

public static IDictionary<string, OpenApiMediaType>? Clone(
    this IDictionary<string, OpenApiMediaType>? content)
parameter description
content The dictionary to clone.

Return Value

A new dictionary with cloned OpenApiMediaType instances.

See Also


OpenApiComponentClone.Clone method (7 of 32)

Clones a dictionary of RuntimeExpressionAnyWrapper instances.

public static IDictionary<string, RuntimeExpressionAnyWrapper>? Clone(
    this IDictionary<string, RuntimeExpressionAnyWrapper>? parameters)
parameter description
parameters The dictionary of RuntimeExpressionAnyWrapper instances to clone.

Return Value

A new dictionary that is a deep clone of the input dictionary.

See Also


OpenApiComponentClone.Clone method (8 of 32)

Clones a list of OpenApiSchema instances.

public static IList<IOpenApiSchema>? Clone(this IList<IOpenApiSchema>? schemas)
parameter description
schemas The list to clone.

Return Value

A new list containing cloned OpenApiSchema instances.

See Also


OpenApiComponentClone.Clone method (9 of 32)

Clones an OpenApiExtension instance.

public static IOpenApiExtension Clone(this IOpenApiExtension extension)
parameter description
extension The OpenApiExtension to clone.

Return Value

A new OpenApiExtension instance with the same properties as the input extension.

Exceptions

exception condition
InvalidOperationException Thrown when the extension is of an unsupported type.

See Also


OpenApiComponentClone.Clone method (10 of 32)

Clones an IOpenApiHeader instance.

public static IOpenApiHeader Clone(this IOpenApiHeader header)
parameter description
header The IOpenApiHeader to clone.

Return Value

A new IOpenApiHeader instance with the same properties as the input header.

Exceptions

exception condition
InvalidOperationException Thrown when the header is of an unsupported type.

See Also


OpenApiComponentClone.Clone method (11 of 32)

Clones an IOpenApiLink instance.

public static IOpenApiLink Clone(this IOpenApiLink link)
parameter description
link The IOpenApiLink to clone.

Return Value

A new IOpenApiLink instance with the same properties as the input link.

See Also


OpenApiComponentClone.Clone method (12 of 32)

Clones an IOpenApiParameter instance.

public static IOpenApiParameter Clone(this IOpenApiParameter parameter)
parameter description
parameter The IOpenApiParameter instance to clone.

Return Value

A cloned instance of IOpenApiParameter.

Exceptions

exception condition
InvalidOperationException Thrown when the IOpenApiParameter implementation is unsupported.

See Also


OpenApiComponentClone.Clone method (13 of 32)

Clones an IOpenApiRequestBody instance.

public static IOpenApiRequestBody Clone(this IOpenApiRequestBody parameter)
parameter description
parameter The IOpenApiRequestBody instance to clone.

Return Value

A cloned instance of IOpenApiRequestBody.

Exceptions

exception condition
InvalidOperationException Thrown when the IOpenApiRequestBody implementation is unsupported.

See Also


OpenApiComponentClone.Clone method (14 of 32)

Clones an IOpenApiResponse instance.

public static IOpenApiResponse Clone(this IOpenApiResponse response)
parameter description
response The IOpenApiResponse instance to clone.

Return Value

A cloned IOpenApiResponse instance.

Exceptions

exception condition
InvalidOperationException Thrown when the IOpenApiResponse implementation is unsupported.

See Also


OpenApiComponentClone.Clone method (15 of 32)

Clones an IOpenApiSchema instance.

public static IOpenApiSchema Clone(this IOpenApiSchema schema)
parameter description
schema The IOpenApiSchema to clone.

Return Value

A new IOpenApiSchema instance with the same properties as the input schema.

See Also


OpenApiComponentClone.Clone method (16 of 32)

Clones an OpenApiExample instance.

public static OpenApiExample Clone(this OpenApiExample example)
parameter description
example The OpenApiExample to clone.

Return Value

A new OpenApiExample instance with the same properties as the input example.

See Also


OpenApiComponentClone.Clone method (17 of 32)

Clones an OpenApiExampleReference instance.

public static OpenApiExampleReference Clone(this OpenApiExampleReference example)
parameter description
example The OpenApiExampleReference to clone.

Return Value

A new OpenApiExampleReference instance with the same properties as the input instance.

See Also


OpenApiComponentClone.Clone method (18 of 32)

Clones an OpenApiHeader instance.

public static OpenApiHeader Clone(this OpenApiHeader header)
parameter description
header The OpenApiHeader to clone.

Return Value

A new OpenApiHeader instance with the same properties as the input header.

See Also


OpenApiComponentClone.Clone method (19 of 32)

Clones an OpenApiHeaderReference instance.

public static OpenApiHeaderReference Clone(this OpenApiHeaderReference header)
parameter description
header The OpenApiHeaderReference to clone.

Return Value

A new OpenApiHeaderReference instance with the same properties as the input header.

See Also


OpenApiComponentClone.Clone method (20 of 32)

Clones an OpenApiLink instance.

public static OpenApiLink Clone(this OpenApiLink link)
parameter description
link The OpenApiLink instance to clone.

Return Value

A new OpenApiLink instance with the same properties as the input instance.

See Also


OpenApiComponentClone.Clone method (21 of 32)

Clones an OpenApiLinkReference instance.

public static OpenApiLinkReference Clone(this OpenApiLinkReference link)
parameter description
link The OpenApiLinkReference instance to clone.

Return Value

A new OpenApiLinkReference instance with the same properties as the input instance.

See Also


OpenApiComponentClone.Clone method (22 of 32)

Clones an OpenApiMediaType instance.

public static OpenApiMediaType Clone(this OpenApiMediaType mediaType)
parameter description
mediaType The OpenApiMediaType to clone.

Return Value

A new OpenApiMediaType instance with the same properties as the input mediaType.

See Also


OpenApiComponentClone.Clone method (23 of 32)

Clones an OpenApiParameter instance.

public static OpenApiParameter Clone(this OpenApiParameter parameter)
parameter description
parameter The OpenApiParameter to clone.

Return Value

A new OpenApiParameter instance with the same properties as the input parameter.

See Also


OpenApiComponentClone.Clone method (24 of 32)

Clones an OpenApiParameterReference instance.

public static OpenApiParameterReference Clone(this OpenApiParameterReference parameter)
parameter description
parameter The OpenApiParameterReference to clone.

Return Value

A new OpenApiParameterReference instance with the same properties as the input parameter.

See Also


OpenApiComponentClone.Clone method (25 of 32)

Clones an OpenApiRequestBody instance.

public static OpenApiRequestBody Clone(this OpenApiRequestBody requestBody)
parameter description
requestBody The OpenApiRequestBody to clone.

Return Value

A new OpenApiRequestBody instance with the same properties as the input requestBody.

See Also


OpenApiComponentClone.Clone method (26 of 32)

Clones an OpenApiRequestBodyReference instance.

public static OpenApiRequestBodyReference Clone(this OpenApiRequestBodyReference requestBody)
parameter description
requestBody The OpenApiRequestBodyReference to clone.

Return Value

A new OpenApiRequestBodyReference instance with the same properties as the input requestBody.

See Also


OpenApiComponentClone.Clone method (27 of 32)

Clones an OpenApiResponse instance.

public static OpenApiResponse Clone(this OpenApiResponse response)
parameter description
response The OpenApiResponse to clone.

Return Value

A new OpenApiResponse instance with the same properties as the input response.

See Also


OpenApiComponentClone.Clone method (28 of 32)

Clones an OpenApiResponseReference instance.

public static OpenApiResponseReference Clone(this OpenApiResponseReference response)
parameter description
response The OpenApiResponseReference to clone.

Return Value

A new OpenApiResponseReference instance with the same properties as the input response.

See Also


OpenApiComponentClone.Clone method (29 of 32)

Clones an OpenApiSchema instance.

public static OpenApiSchema Clone(this OpenApiSchema schema)
parameter description
schema The OpenApiSchema to clone.

Return Value

A new OpenApiSchema instance with the same properties as the input schema.

See Also


OpenApiComponentClone.Clone method (30 of 32)

Clones an OpenApiSchemaReference instance.

public static OpenApiSchemaReference Clone(this OpenApiSchemaReference schemaRef)
parameter description
schemaRef The OpenApiSchemaReference to clone

Return Value

A new OpenApiSchemaReference instance with the same properties as the input instance.

See Also


OpenApiComponentClone.Clone method (31 of 32)

Clones an OpenApiServer instance.

public static OpenApiServer Clone(this OpenApiServer server)
parameter description
server The OpenApiServer instance to clone.

Return Value

A new OpenApiServer instance with the same properties as the input instance.

See Also


OpenApiComponentClone.Clone method (32 of 32)

Clones a RuntimeExpressionAnyWrapper instance.

public static RuntimeExpressionAnyWrapper Clone(this RuntimeExpressionAnyWrapper expressionWrapper)
parameter description
expressionWrapper The RuntimeExpressionAnyWrapper instance to clone.

Return Value

A new RuntimeExpressionAnyWrapper instance with the same properties as the input instance.

See Also