Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.43 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.43 KB

models-lib Model Generation

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.

Installation

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

Usage

List languages available:

npm start -- list

Generate language files:

npm start -- generate <language> --destination <folder>

Specific examples

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/