Class DtoClassBuilder
- Namespace
- TypedRest.CodeGeneration.Jvm.Dtos
- Assembly
- TypedRest.CodeGeneration.Jvm.dll
Builds a DTO for an object schema.
public class DtoClassBuilder : DtoBuilder
- Inheritance
-
objectDtoClassBuilder
- 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
keystringschemaOpenApiSchemanamingINamingStrategytypeNamesTypeNameRegistry
Fields
Properties
The properties of this type, including any merged in from allOf schemas.
protected readonly IReadOnlyDictionary<string, OpenApiSchema> Properties
Field Value
RequiredProperties
The keys of the required properties, including any from allOf schemas.
protected readonly ICollection<string> RequiredProperties
Field Value
Methods
BuildProperty(string, OpenApiSchema?)
Builds one property of the DTO.
protected virtual JvmDtoProperty BuildProperty(string key, OpenApiSchema? schema)
Parameters
keystringschemaOpenApiSchema
Returns
BuildTypeInner()
Builds the type itself, without the parts every kind of DTO has in common.
protected override IJvmType BuildTypeInner()