We are creating api for web app and smartphone app with protocol buffer.
There is a common message between the definition for the web and the definition for the smartphone application.
webapi ┬ myuniquenamemoduleweb ┬ common ┬ bar.proto
├ buf.yaml
├
appapi ┬ myuniquenamemoduleapp ┬ common ┬ bar.proto
├ buf.yaml
buf.yaml
In such a case, would it be a good policy to create a module like myappcommon, for example, and register it with BSR?
webapi ┬ myuniquenamemoduleweb
├ buf.yaml // deps myuniquenameprjcommon
appapi ┬ myuniquenamemoduleapp
├ buf.yaml // deps myuniquenameprjcommon
common ┬ myuniquenamemodulecommon ┬ common ┬ bar.proto
├ buf.yaml
I looked for projects on Github that might be helpful and read Buf's documentation.