Supporting code and tooling for OpenActive models, common across all languages
OpenActive aims to support implementers with models written in PHP, Ruby, .NET and JavaScript/TypeScript. This repository is intended to hold resources (e.g. generators, tests) shared across all of the above.
Clone this project:
git clone https://github.com/openactive/models-lib.git
This project requires Node v18 (npm v9).
A .nvmrc
file is provided for clarity.
Install dependencies:
npm install
List languages available:
npm start -- list
Generate language files:
npm start -- generate <language> --destination <folder>
PHP:
npm start -- generate PHP --destination ../models-php/src/
Ruby:
npm start -- generate Ruby --destination ../models-ruby/lib/openactive/
.NET:
npm start -- generate .NET --destination ../OpenActive.NET/OpenActive.NET/
JavaScript/TypeScript:
npm start -- generate TypeScript --destination ../models-ts/src/