Lua Generator Attributes
Here’s the list of attributes that affect Lua code generation.
See also
Attribute |
Type |
Inheritance |
Target |
Description |
Default |
|---|---|---|---|---|---|
enabled |
bool |
scope |
module,
type
|
Enables code generation for
the module or type.
|
|
file |
string |
module |
Override generated file name. |
||
name |
string |
module,
type,
record field
enum field
|
Override generated name. |
||
field_notation |
scope |
record field |
Notation used for name
translation of record
field names.
|
|
|
field_notation |
scope |
enum field |
Notation used for name
translation of enum
field names.
|
|
|
json.serializer |
string |
type |
Provides the user-provided JSON
serializer name. Serializer
won’t be generated.
|
||
enum_alias |
string |
type |
Provides the alias enum table
name. See Enum Aliases
|
||
enum_style |
tableenum |
enum |
The style of generated enum.
See Enum Style
|
|
|
record_style |
dataclass |
record
variant
|
|