Table of Contents

Class DtoClassBuilder

Namespace
TypedRest.CodeGeneration.Jvm.Dtos
Assembly
TypedRest.CodeGeneration.Jvm.dll

Builds a DTO for an object schema.

public class DtoClassBuilder : DtoBuilder
Inheritance
object
DtoClassBuilder
Inherited Members

Constructors

DtoClassBuilder(string, OpenApiSchema, INamingStrategy, TypeNameRegistry?)

Builds a DTO for an object schema.

public DtoClassBuilder(string key, OpenApiSchema schema, INamingStrategy naming, TypeNameRegistry? typeNames = null)

Parameters

key string
schema OpenApiSchema
naming INamingStrategy
typeNames TypeNameRegistry

Fields

Properties

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

protected readonly IReadOnlyDictionary<string, OpenApiSchema> Properties

Field Value

IReadOnlyDictionary<string, OpenApiSchema>

RequiredProperties

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

protected readonly ICollection<string> RequiredProperties

Field Value

ICollection<string>

Methods

BuildProperty(string, OpenApiSchema?)

Builds one property of the DTO.

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

Parameters

key string
schema OpenApiSchema

Returns

JvmDtoProperty

BuildTypeInner()

Builds the type itself, without the parts every kind of DTO has in common.

protected override IJvmType BuildTypeInner()

Returns

IJvmType