C# Class MicroElements.Swashbuckle.NodaTime.NodaTimeSchemaSettings

Settings that control serialization aspects.
Exibir arquivo Open project: micro-elements/MicroElements.Swashbuckle.NodaTime Class Usage Examples

Public Methods

Method Description
NodaTimeSchemaSettings ( Func resolvePropertyName, Func formatToJson, bool shouldGenerateExamples, SchemaExamples? schemaExamples = null, IDateTimeZoneProvider? dateTimeZoneProvider = null ) : System

Initializes a new instance of the NodaTimeSchemaSettings class.

Method Details

NodaTimeSchemaSettings() public method

Initializes a new instance of the NodaTimeSchemaSettings class.
public NodaTimeSchemaSettings ( Func resolvePropertyName, Func formatToJson, bool shouldGenerateExamples, SchemaExamples? schemaExamples = null, IDateTimeZoneProvider? dateTimeZoneProvider = null ) : System
resolvePropertyName Func Function that resolves property name by proper naming strategy.
formatToJson Func Function that formats object as json text.
shouldGenerateExamples bool Should the example node be generated.
schemaExamples SchemaExamples? for schema example values.
dateTimeZoneProvider IDateTimeZoneProvider? configured in Startup.
return System