Giter VIP home page Giter VIP logo

adcom-proto's Introduction

IAB Protobuff Spec for AdCOM (WIP)

Comments

  • Where the spec dictates one of several fields be populated, the oneof label is used to enforce this.
  • Where the spec recommends that only of several fields be used, the oneof label is used to enforce this.
  • Enumerated fields are defined as integer type so they can be extended. The standard values are defined in an enum, which may be used for validation.

Docs

Docs can be generated by invoking make docs. This uses the protoc-gen-doc tool. Unfortunately, the tool doesn't support objects nested deeper than two levels.

Developing

When iterating on the protobuff definitions, you can run make watch and it will run the doc generator whenever the file is saved. This is useful for checking the validity of the protobuff definitions and also for generating docs (works well with Marked 2).

Dependencies

The Makefile provides targets that depend on the following tools being installed:

  • golang
  • protoc - for generating go and java bindings
  • prototool - for running a linter and for formatting
  • docker - for generating docs

To compile this project on MacOS:

brew install golang
brew install protoc-gen-go
brew install prototool

Makefile Targets

compile Builds the Golang and Java bindings. Useful for making sure the file is valid and for seeing if the generated code makes sense.

fmt Runs the prototools formatter on the protobuff files.

check Runs the prototools linter.

clean Deletes the code generated by the compile target.

docs Generates a README.md in the docs/ subdirectory.

watch Looks for updates to the protofiles and rebuilds the docs.

adcom-proto's People

Contributors

joelpm avatar hillslatt avatar jenniferiab avatar

Stargazers

Paul Vavilov avatar  avatar Junhyeok Choi, Claud avatar

Watchers

 avatar Amit Shetty avatar Dmytro Babichev avatar Mayank Mishra avatar  avatar

adcom-proto's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.