ebowman / api-first-hand

API-First bootstrapping tool for building RESTful web services from a Swagger/OpenAPI spec
MIT License
142 stars 22 forks source link

Schema responses type should not have to start with capital letter #63

Closed alexec closed 7 years ago

alexec commented 7 years ago

You can have a response type (i.e. in you definition block) that has a lowercase first let, it produces code that will not compile. This is related to the case classes that are produced (which have title case).

I'll update with more details shortly.

alexec commented 7 years ago

Workaround

Change name of property.

Good:

"definitions": {
    "SuccessResponse": ...
}

Bad:

"definitions": {
    "successResponse": ...
}
slavaschmidt commented 7 years ago

Hey @alexec, thank you very much for the report! I've tried to change type definitions in the simple.petstore.api.yaml from lower to uppercase and back and could not reproduce the issue.

It would be very helpful if you could provide small yet complete specification which we could use to drive our bugfix efforts.

alexec commented 7 years ago

Sorry - due to change in work, I'm afraid I won't have a chance to look at this. Feel free to close.