Open lfse-slafleur opened 3 months ago
The field message_type is currently defined as an enum in openapi.yml.
message_type
openapi.yml
Example from line 807:
properties: message_type: type: string enum: [ "DDBC.TimerStatus" ]
Rather a constant is expected such as:
message_type: const: DDBC.TimerStatus type: string
A const is generated differently by generators such as datamodel-codegen. An enum will be generated to its own type and it is harder to use while a const will remain a simple string.
const
enum
The field
message_type
is currently defined as an enum inopenapi.yml
.Example from line 807:
Rather a constant is expected such as:
A
const
is generated differently by generators such as datamodel-codegen. Anenum
will be generated to its own type and it is harder to use while aconst
will remain a simple string.