Leszek Wiesner 0804bfbb34 Fix checks - remove StorageProviderRecord and run formatter on protobuf library | 3 rokov pred | |
---|---|---|
.. | ||
compiled | 3 rokov pred | |
doc | 3 rokov pred | |
proto | 3 rokov pred | |
src | 3 rokov pred | |
test | 3 rokov pred | |
.eslintignore | 3 rokov pred | |
.eslintrc.js | 3 rokov pred | |
.gitignore | 3 rokov pred | |
.prettierignore | 3 rokov pred | |
README.md | 3 rokov pred | |
compile.sh | 3 rokov pred | |
doc-appendix.md | 3 rokov pred | |
generate-md-doc.sh | 3 rokov pred | |
package.json | 3 rokov pred | |
tsconfig.json | 3 rokov pred |
This package contains protobuf message definitions compiled to Javascript/Typescript used for creating and updating various metadata blobs in the joystream content directory.
Documented in doc folder
For our usecase we wish to re-use same message to create and update subset of fields. For this reason we need the explicit information about wether a field has been set or not and this is only possible with proto v2.
Background: required/optional feilds are deprecated in proto v3
The custom Joystream types such as License have helper methods to construct pre-defined well known values.
Best place to look at are the tests specs
We use simple ISO_639-1 code representation for Language. useful npm package https://www.npmjs.com/package/iso-639-1
Building will compile the protofiles and build the library from source.
pre-requisists for compiling protofiles:
pre-requisists for generating documentation:
protoc-gen-doc to generate docs
yarn && yarn build
yarn generate-docs
yarn test