Show / Hide Table of Contents

Class DateOnlyJsonConverter

Formatter for 'date' openapi formats ss defined by full-date - RFC3339 see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types

Inheritance
object
JsonConverter
JsonConverter<DateOnly>
DateOnlyJsonConverter
Inherited Members
JsonConverter<DateOnly>.CanConvert(Type)
JsonConverter<DateOnly>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<DateOnly>.WriteAsPropertyName(Utf8JsonWriter, DateOnly, JsonSerializerOptions)
JsonConverter<DateOnly>.HandleNull
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi.Esc.Sdk.Client
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class DateOnlyJsonConverter : JsonConverter<DateOnly>

Properties

View Source

Formats

The formats used to deserialize the date

Declaration
public static string[] Formats { get; }
Property Value
Type Description
string[]

Methods

View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Returns a DateOnly from the Json object

Declaration
public override DateOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader
Type typeToConvert
JsonSerializerOptions options
Returns
Type Description
DateOnly
Overrides
JsonConverter<DateOnly>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
View Source

Write(Utf8JsonWriter, DateOnly, JsonSerializerOptions)

Writes the DateOnly to the json writer

Declaration
public override void Write(Utf8JsonWriter writer, DateOnly dateOnlyValue, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer
DateOnly dateOnlyValue
JsonSerializerOptions options
Overrides
JsonConverter<DateOnly>.Write(Utf8JsonWriter, DateOnly, JsonSerializerOptions)

Version 0.13.1

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.