Hi!
I use openapi-format to convert schema from snake_case to camelCase, but i struggle with a parameter names which include . in it.
For instance, there are some parameters with the names like cursor.created_at which represent an object-like formatting:
and those parameter names are formatted to cursorCreatedAt, using dot notation as a separator.
I see, in case-anything casing converter there is a second config parameter with keep property.
More over, I assume that this param is supposed to be supported in casing.js util function, but I don't get it how can I pass this param in my openapi-format config file (or programmatic usage).
my .openapiformatrc looks like this:
{
"casingSet": {
"parametersQuery": "camelCase",
"properties": "camelCase",
},
"filterSet": {
"tags": ["Roles", "UserSettings"]
}
}
Hi!
I use openapi-format to convert schema from snake_case to camelCase, but i struggle with a parameter names which include
.in it.For instance, there are some parameters with the names like
cursor.created_atwhich represent an object-like formatting:and those parameter names are formatted to
cursorCreatedAt, using dot notation as a separator.I see, in
case-anythingcasing converter there is a second config parameter withkeepproperty.More over, I assume that this param is supposed to be supported in
casing.jsutil function, but I don't get it how can I pass this param in my openapi-format config file (or programmatic usage).my
.openapiformatrclooks like this:{ "casingSet": { "parametersQuery": "camelCase", "properties": "camelCase", }, "filterSet": { "tags": ["Roles", "UserSettings"] } }