Table of Contents

Class DtoClassBuilder

Namespace
TypedRest.CodeGeneration.CSharp.Dtos
Assembly
TypedRest.CodeGeneration.CSharp.dll
public class DtoClassBuilder : DtoBuilder
Inheritance
object
DtoClassBuilder
Inherited Members

Constructors

DtoClassBuilder(string, OpenApiSchema, INamingStrategy, LanguageVersion, TypeNameRegistry?, JsonAttributes?)

public DtoClassBuilder(string key, OpenApiSchema schema, INamingStrategy naming, LanguageVersion languageVersion = LanguageVersion.Latest, TypeNameRegistry? typeNames = null, JsonAttributes? jsonAttributes = null)

Parameters

key string
schema OpenApiSchema
naming INamingStrategy
languageVersion LanguageVersion
typeNames TypeNameRegistry
jsonAttributes JsonAttributes

Fields

Properties

The properties of this type, including any merged in from inline allOf schemas.

protected readonly IReadOnlyDictionary<string, OpenApiSchema> Properties

Field Value

IReadOnlyDictionary<string, OpenApiSchema>

RequiredProperties

The keys of the required properties, including any from inline allOf schemas.

protected readonly ICollection<string> RequiredProperties

Field Value

ICollection<string>

Methods

BuildProperty(string, OpenApiSchema?)

protected virtual CSharpProperty BuildProperty(string key, OpenApiSchema? schema)

Parameters

key string
schema OpenApiSchema

Returns

CSharpProperty

BuildTypeInner()

protected override ICSharpType BuildTypeInner()

Returns

ICSharpType