OpenApiDocDescriptor.ToJson method

Serializes the OpenAPI document to a JSON string.

public string ToJson(OpenApiSpecVersion version)
parameter description
version The OpenAPI specification version to serialize as.

Return Value

The serialized JSON string.

See Also