Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger spec incorrect casing for complex type parameters #322

Closed
timosnel opened this issue May 12, 2015 · 3 comments
Closed

Swagger spec incorrect casing for complex type parameters #322

timosnel opened this issue May 12, 2015 · 3 comments
Milestone

Comments

@timosnel
Copy link

I'm using camel-casing for my route parameters, sometimes I use complex types as parameter which works fine. However, no matter what casing I use for the names of the properties, they are all in lower case in the generated Swagger spec.

In the XML the member looks as follows:

        <member name="NavigationFlagParameters.IncludeChildNodes">
            <summary>
            Indicates whether or not child nodes should be included. 
            </summary>
        </member>

This will be converted into the following in the spec:

{
    "name": "includechildnodes",
    "in": "query",
    "description": "Indicates whether or not child nodes should be included.",
    "required": false,
    "type": "boolean"
},

Am I missing something or is this a bug?

@domaindrivendev
Copy link
Owner

Yep this looks like a bug. Thanks for reporting it - I'll aim to get a fix out with the next release.

@domaindrivendev
Copy link
Owner

Should be resolved in latest release - 5.2.0

@mcoolidge
Copy link

It seems like all my request parameters are FORCED to camelCase. This looks weird when I have things like DOB or SSN which become sSN and dOB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants