swagger-docs icon indicating copy to clipboard operation
swagger-docs copied to clipboard

Required properties are camelized inconsistently

Open klittlepage opened this issue 10 years ago • 0 comments

Required properties on a model aren't camelized when camelize_model_properties is set to true (the default).

As an example, the following was generated when camelization was enabled:

"Account": { "id": "Account", "required": [ "account_name", ], "properties": { "accountName": { "type": "string", "description": "Blah" } }, "description": "Foo" } Note that "accountName" isn't camelized in the list of required fields. Disabling camelization gives the expected behavior.

"Account": { "id": "Account", "required": [ "account_name" ], "properties": { "account_name": { "type": "string", "description": "Blah" } }, "description": "Foo" }

klittlepage avatar Sep 16 '14 23:09 klittlepage