-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
We have a 3rd party spec that contains similar names in schema. Can name mappings be added to the library? Or is there already a way to use name mappings?
Schema sample:
"properties": {
"feature_enabled": {
"type": "boolean",
"description": "Whether the feature is enabled or not.",
"example": true
},
"featureEnabled": {
"deprecated": true,
"type": "boolean",
"description": "Use `feature_enabled` instead.",
"example": true
}
...
}
Result:
public static final String JSON_PROPERTY_FEATURE_ENABLED = "feature_enabled";
@javax.annotation.Nullable
private Boolean featureEnabled;
public static final String JSON_PROPERTY_FEATURE_ENABLED = "featureEnabled";
@javax.annotation.Nullable
private Boolean featureEnabled;
The issue is that the same constant name is generated.
Metadata
Metadata
Assignees
Labels
No labels