Closed RyanRamchandar closed 10 months ago
Given the swagger:
"SessionTypes": { "type": "string", "enum": [ "Crystal Calibration", ] },
The following is generated:
import 'package:freezed_annotation/freezed_annotation.dart'; @JsonEnum() enum SessionTypes { /// Incorrect name has been replaced. Original name: `Crystal Calibration`. @JsonValue('Crystal Calibration') undefined0, }
I would expect:
import 'package:freezed_annotation/freezed_annotation.dart'; @JsonEnum() enum SessionTypes { @JsonValue('Crystal Calibration') crystalCalibration, }
In Dart, I would suggest converting strings to camelCase variable names and strip away any spaces.
camelCase
Thanks!
Given the swagger:
The following is generated:
I would expect:
In Dart, I would suggest converting strings to
camelCase
variable names and strip away any spaces.