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

JaxrsApiReader misses some properties #508

Closed
kongchen opened this issue Mar 25, 2014 · 10 comments
Closed

JaxrsApiReader misses some properties #508

kongchen opened this issue Mar 25, 2014 · 10 comments

Comments

@kongchen
Copy link
Contributor

The reader: com.wordnik.swagger.jaxrs.JaxrsApiReader reads com.wordnik.swagger.annotations.ApiModelProperty to com.wordnik.swagger.model.ModelProperty, but the properties: notes and access are missing in ModelProperty

@MiguelGL
Copy link

I think I fixed this as of pull request #531

@fkirchhoff
Copy link

Is this fix planned to be part of the 1.3.8 release?

@fehguy
Copy link
Contributor

fehguy commented Jul 31, 2014

Yes it is

@rajanramasamy
Copy link

Would it be possible to backport this bug fix to 1.3.7? Our release is coming up in one month and this bug is a showstopper.

@fehguy
Copy link
Contributor

fehguy commented Sep 2, 2014

Hi, the problem is, these fields don't actually exist in the model property section of the swagger spec. So there's no place to put them in the output (the annotations shouldn't have them).

The spec is here:

https://github.com/reverb/swagger-spec/blob/master/versions/1.2.md#529-property-object

and as you see, those fields don't exist for models.

@kongchen
Copy link
Contributor Author

kongchen commented Sep 3, 2014

Hi, will the annotations remove the unused fields in 1.3.8?

@fehguy
Copy link
Contributor

fehguy commented Sep 3, 2014

Hi, we don't plan on removing them as they are not harming anything--we will make sure they're properly documented. @kongchen are you in the swagger 2.0 workgroup?

@kongchen
Copy link
Contributor Author

kongchen commented Sep 3, 2014

Yes, I'm there.
2014-9-3 上午10:57于 "Tony Tam" notifications@github.com写道:

Hi, we don't plan on removing them as they are not harming anything--we
will make sure they're properly documented. @kongchen
https://github.com/kongchen are you in the swagger 2.0 workgroup?


Reply to this email directly or view it on GitHub
#508 (comment)
.

@webron
Copy link
Contributor

webron commented Sep 17, 2014

@kongchen - To clarify, the javadocs were updated on version 1.3.7.

notes is indeed not in use.
access is used for access control rather than documentation.

@kongchen
Copy link
Contributor Author

Thanks!

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

6 participants