Share via


OpenApiSchema.Default Property

Definition

Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 The default value represents what would be assumed by the consumer of the input as the value of the schema if one is not provided. Unlike JSON Schema, the value MUST conform to the defined type for the Schema Object defined at the same level. For example, if type is string, then default can be "foo" but cannot be 1.

public Microsoft.OpenApi.Any.IOpenApiAny Default { get; set; }
member this.Default : Microsoft.OpenApi.Any.IOpenApiAny with get, set
Public Property Default As IOpenApiAny

Property Value

Applies to