Share via


OpenApiTypeMapper.MapOpenApiPrimitiveTypeToSimpleType(OpenApiSchema) Method

Definition

Maps an OpenAPI data type and format to a simple type.

public static Type MapOpenApiPrimitiveTypeToSimpleType (this Microsoft.OpenApi.Models.OpenApiSchema schema);
static member MapOpenApiPrimitiveTypeToSimpleType : Microsoft.OpenApi.Models.OpenApiSchema -> Type
<Extension()>
Public Function MapOpenApiPrimitiveTypeToSimpleType (schema As OpenApiSchema) As Type

Parameters

schema
OpenApiSchema

The OpenApi data type

Returns

The simple type

Exceptions

Applies to