Skip to content

evorada/ocpi-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocpi-types

Auto-generated type definitions for the OCPI protocol. Mostly generated with quicktype.

Currently generating packages for following languages:

The generated code had to be manually tweaked and cleaned up therefore running quicktype to regenerate the files can be destructive!

  • The 2.1.1 schemas have been adapted from ChargeMap/ocpi-protocol.
  • The 2.2.1 schemas have been derived from the official ocpi/ocpi v2.2.1-d2 specification.
  • The 2.3.0 schemas have been derived from the official OCPI 2.3.0 release, which is published as three branches. Each is a separate schema:

Continuous integration

Two GitHub Actions workflows run on every push and pull request:

  • compile-check — builds the generated bindings in each language (one parallel job per language) to verify they compile.
  • docs — generates API documentation per language (Go via gomarkdoc, Python via pdoc, Rust via cargo doc, TypeScript via ts-docs) and publishes a combined site to GitHub Pages: https://evorada.github.io/ocpi-types/

About

🔣 Auto-generated OCPI type definitions for multiple languages

Topics

Resources

License

Stars

Watchers

Forks

Contributors