-
Notifications
You must be signed in to change notification settings - Fork 926
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix that overloaded methods are not displayed in DocService (#4545)
Motivation: Overloaded methods in annotated services are not displayed correctly in DocService. Armeria DocService was built for Thrift services in which overloading methods are not possible, so we didn't consider overloaded methods at that time. Also, it was for Thrift types, the `TypeSignature` wasn't structured well to represent other types used in `gRPC` and annotated services. Modifications: - Add `id` to `MethodInfo` that uniquely identifies each method. - It is formed of `serviceName/methodName/httpMethod` - The `methodName` has increased `-n` at the end when the method is overloaded. - Fix a bug where parsing the same named type recursively. - (Breaking) - `NamedTypeInfo` is now `DescriptiveTypeInfo`. - `NamedTypeInfoProvider` is now `DescriptiveTypeInfoProvider` - Interface `TypeSigniture`. - Add subclasses with `TypeSignatureType` that represents each `TypeSignature` Result: - You can now send a debug request via `DocService` when the method is overloaded. - Well-structured `TypeSignature` To-do: - Add `JsonSchemaType` to `TypeSignature` for creating the JSON schema easily.
- Loading branch information
Showing
63 changed files
with
1,159 additions
and
886 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
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
Oops, something went wrong.