Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Supporting code and tooling for OpenActive models, common across all languages

License

Notifications You must be signed in to change notification settings

openactive/models-lib

Open more actions menu

Repository files navigation

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/

About

Supporting code and tooling for OpenActive models, common across all languages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7

Morty Proxy This is a proxified and sanitized view of the page, visit original site.