All cloud control plane API definition based on gRPC.
Example:
git clone https://bb.yandex-team.ru/scm/cloud/private-api.git
cd private-api
// ...Hack-hack-hack...
make lint
Just run make lint
inside src root.
To build proto tools from source set 'BUILD_TOOLS' variable to 1.
Also you may check compilation of swagger docs out of cloud API: run make generate
for that.
For Pull Request build both successful lint
and generate
required.
Normally, all the fields of all messages received from users must be validated:
Output messages does not require validation.
Syntax and examples can be found in yandex/cloud/priv/example/v1alpha/validation_example.proto
For Java developers there is java
module, mvn clean package
in this directory does following:
The java/do_local_install.sh
script is useful for local development of a feature branch.
The script will run mvn versions:set && mvn clean install
and install built artifacts
in the local maven repo with snapshot version. Please run versions:revert
manually if script failed at compilation.