-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
@Tag
support for JAX-RS sub-resources
@tag order of priority: 1. Directly on resource method 2. On nearest subresource producer method (when operation is in a subresource) 3. On nearest subresource class (when operation is in a subresource) 4. On root resource class Signed-off-by: Michael Edgar <[email protected]>
- Loading branch information
Showing
3 changed files
with
198 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
...rces/io/smallrye/openapi/runtime/scanner/resource.subresource-tag-placement-priority.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"openapi" : "3.0.3", | ||
"tags" : [ { | ||
"name" : "root-a2-tag" | ||
}, { | ||
"name" : "root-tag" | ||
}, { | ||
"name" : "subresource-a-op1-tag" | ||
}, { | ||
"name" : "subresource-a-tag" | ||
} ], | ||
"paths" : { | ||
"/root/a1/op1" : { | ||
"get" : { | ||
"tags" : [ "subresource-a-op1-tag" ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK", | ||
"content" : { | ||
"text/plain" : { | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/root/a1/op2" : { | ||
"get" : { | ||
"tags" : [ "subresource-a-tag" ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK", | ||
"content" : { | ||
"text/plain" : { | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/root/a2/op1" : { | ||
"get" : { | ||
"tags" : [ "subresource-a-op1-tag" ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK", | ||
"content" : { | ||
"text/plain" : { | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/root/a2/op2" : { | ||
"get" : { | ||
"tags" : [ "root-a2-tag" ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK", | ||
"content" : { | ||
"text/plain" : { | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/root/b1/op1" : { | ||
"get" : { | ||
"tags" : [ "root-tag" ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK", | ||
"content" : { | ||
"text/plain" : { | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/root/b1/op2" : { | ||
"get" : { | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK", | ||
"content" : { | ||
"text/plain" : { | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |