Lua Generator Attributes

Here’s the list of attributes that affect Lua code generation.

Attribute

Type

Inheritance

Target

Description

Default

enabled

bool

scope

module,
type
Enables code generation for
the module or type.

true

file

string

module

Override generated file name.

name

string

module,
type,
record field
enum field

Override generated name.

field_notation

Notation

scope

record field

Notation used for name
translation of record
field names.

lower_underscore

field_notation

Notation

scope

enum field

Notation used for name
translation of enum
field names.

upper_camel

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

table
enum

enum

The style of generated enum.

table

record_style

data
class
record
variant
The style of generated
record table.

class