-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The scope of this pr is to replace the old parsing strategy and move …
…towards a tree based type verification strategy. From this commit it's possible to refer to a type using a partial path and not only a fully specified path. If we declare for e.g. the following schema: ```protobuf syntax = "proto3"; package my.awesome.customer.plan.entity.v1beta1; message CustomerPlan { string plan_name = 1; } ``` When importing it it's sufficient to use a part of the full specified path (that in this case would be `my.awesome.customer.plan.entity.v1beta1.CustomerPlan`). As e.g. it would be enough to use `entity.v1beta1.CustomerPlan` or `v1beta1.CustomerPlan`, so the following declaration would be accepted: ```protobuf syntax = "proto3"; package my.awesome.customer.plan.entity.v1beta1; import "my/awesome/customer/plan/entity/v1beta1/entity.proto"; message CustomerPlanEvent { message Created { entity.v1beta1.CustomerPlan plan = 1; } } ```
- Loading branch information
Showing
9 changed files
with
630 additions
and
227 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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.