Enum
class Enum(nullable: Boolean, fields: List<GeneratedField>, name: String, topInterfaceName: ValidFieldName, visibility: MarkerVisibility = MarkerVisibility.IMPLICIT_PUBLIC, prependTopInterfaceName: Boolean = true) : OpenApiMarker
A Marker that will be used to generate an enum.
Parameters
nullable
whether the enum can be null. Needs to be checked when referring to this Marker.
fields
the fields of the enum, can be created using generatedEnumFieldOf.
name
the name of the enum.
visibility
the visibility of the enum.
Constructors
Link copied to clipboard
constructor(nullable: Boolean, fields: List<GeneratedField>, name: String, topInterfaceName: ValidFieldName, visibility: MarkerVisibility = MarkerVisibility.IMPLICIT_PUBLIC, prependTopInterfaceName: Boolean = true)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun withName(name: String, prependTopInterfaceName: Boolean = true): OpenApiMarker.Enum
Link copied to clipboard