Share via


OpenApiString Class

Definition

Open API string type.

public class OpenApiString : Microsoft.OpenApi.Any.OpenApiPrimitive<string>
type OpenApiString = class
    inherit OpenApiPrimitive<string>
Public Class OpenApiString
Inherits OpenApiPrimitive(Of String)
Inheritance
OpenApiString

Constructors

OpenApiString(String, Boolean, Boolean)

Initializes the OpenApiString class.

OpenApiString(String, Boolean)

Initializes the OpenApiString class.

OpenApiString(String)

Initializes the OpenApiString class.

Properties

AnyType

The kind of IOpenApiAny.

(Inherited from OpenApiPrimitive<T>)
PrimitiveType

The primitive class this object represents.

Value

Value of this IOpenApiPrimitive

(Inherited from OpenApiPrimitive<T>)

Methods

IsExplicit()

True if string was specified explicitly by the means of double quotes, single quotes, or literal or folded style.

IsRawString()

True if the writer should process the value as supplied without encoding.

Write(IOpenApiWriter, OpenApiSpecVersion)

Write out content of primitive element

(Inherited from OpenApiPrimitive<T>)

Extension Methods

Validate(IOpenApiElement, ValidationRuleSet)

Validate element and all child elements

Applies to