-
Notifications
You must be signed in to change notification settings - Fork 82
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
Clean up the Pet Store (and possibly Airlines) app annotations #322
Comments
thanks for opening this Eric. fyi, these were other warnings that we saw from the Pet Store app:
|
@EricWittmann - is the apiKey/api_key header in PetResource#deletePet (extracted in snippet below) an example of this? The TCK tests for @Parameter(
name = "apiKey",
description = "authentication key to access this method",
schema = @Schema(type = SchemaType.STRING, implementation = String.class,
maxLength = 256, minLength = 32))
@HeaderParam("api_key") String apiKey |
No although that seems wonky for a different reason (namely that the names do not match). But an example of this issue, I think, is this: Lines 97 to 101 in ac854fe
That's a POST operation with a request body of type |
Ok, I see now. I opened up #390 to take a look at clarifying parameter annotation usage and behavior. |
Hi @EricWittmann @MikeEdgar |
@EricWittmann , @lamtrhieu - are either of you still interested in working on this one? I think this could be a good candidate to fix for 3.1. |
…lrye.config-smallrye-config-1.8.0 Bump smallrye-config from 1.7.0 to 1.8.0
The Pet Store app (possibly also the Airlines app, I haven't checked) has a number of
@Parameter
annotations that are likely incorrect because the app was taken from the old Swagger 2.0 codebase. For example, there are a number of@Parameter
annotations on method arguments which would typically be represented as a request body. In Swagger 2.0 that was correct, because request bodies were defined as "body" style parameters. In 3.0, however, there is an actual request body. There may be other annotations that do not make sense in 3.0 - so we should review the code.The text was updated successfully, but these errors were encountered: