Skip to content

openTdataCH/ojp-shared-types

Repository files navigation

ojp-shared-types

This repo contains the shared types used by OJP models based on OpenAPI / XSD Schema https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html

Notes

Usage

  • include the ojp-shared-types package in the ./package.json dependencies of the project
  "dependencies": {
    "ojp-shared-types": "0.0.13"
  }
  • consume the OJP types in your application
import * as OJP_Types from 'ojp-shared-types';

export class MyOJPReques implements OJP_Types.TripRequestSchema {
    ....
}

Build and extend the current models

  • edit openapi YAML files
  • generate models $ npm run generate:ts

License

The project is released under a MIT license.

Copyright (c) 2025 Open Data Platform Mobility Switzerland - opentransportdata.swiss.

About

Shared types for OJP models based on OpenAPI / XSD Schema

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •