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

Using reserved swagger keywords as property name. #3376

Closed
webron opened this issue Jul 12, 2017 · 1 comment
Closed

Using reserved swagger keywords as property name. #3376

webron opened this issue Jul 12, 2017 · 1 comment

Comments

@webron
Copy link
Contributor

webron commented Jul 12, 2017

From @vkrisju12096 on July 12, 2017 17:55

When am trying to use the reserved keyword properties as a property name in the Animal model, UI doesn't show anything about the properties. Below you can find swagger as well as Output UI also.

screen shot 2017-07-12 at 2 03 16 pm


UI:


screen shot 2017-07-12 at 1 48 48 pm

But if I change that Animal model property name properties to some other name like prop. Then it is working.

screen shot 2017-07-12 at 2 04 43 pm

screen shot 2017-07-12 at 1 59 40 pm

But I want to use property name as properties only.....
Any Suggestions???

Copied from original issue: swagger-api/swagger-editor#1400

@owenconti
Copy link
Contributor

There is a PR with a fix for this in the swagger-js repo: swagger-api/swagger-js#1108

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

No branches or pull requests

2 participants