Skip to content

[AIP 131] Should Get request message be defined in the same file of the service? #151

@mingzhi

Description

@mingzhi

In the example, should we enforce that the GetBookRequest message must be defined in the same file of GetBook method?

If no, it is very hard to ask the API linter to enforce the rules on the request message. Image that GetBook message is defined in the get_book_message.proto, and the RPC method is defined in get_book_service.proto: now consider that get_book_message.proto is checked and committed first, but no issue related to this AIP is found; then get_book_service.proto is checked, it will produce linting errors on the get_book_message.proto, which is undesired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions