GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - evorada/ocpi-types: 🔣 Auto-generated OCPI type definitions for multiple languages

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
go
go
 
 
python
python
 
 
rust
rust
 
 
schemas
schemas
 
 
typescript
typescript
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 

Repository files navigation

ocpi-types

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

Currently generating packages for following languages:

  • Go
  • Python using typing and type hints
  • Rust
  • TypeScript

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:
    • v2.3.0 — the core edition (v2.3.0-ed1).
    • v2.3.0-payments — core plus the Payments module (v2.3.0-payments).
    • v2.3.0-bookings — core plus the Bookings module (v2.3.0-bookings).

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

evorada.github.io/ocpi-types/

Topics

ev-roamingevchargingocpiocpi-2-2-1roaming

Resources

Readme
AGPL-3.0 license
Activity
Custom properties

Stars

5 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.