Skip to content
archive

GitHub Action

TypeSchema Code Generator

v0.1.3 Latest version

TypeSchema Code Generator

archive

TypeSchema Code Generator

This action can automatically generate code based on a TypeSchema specification

Installation

Copy and paste the following snippet into your .yml file.

              

- name: TypeSchema Code Generator

uses: apioo/typeschema-generator-action@v0.1.3

Learn more about this action in apioo/typeschema-generator-action

Choose a version

TypeSchema Code Generator

This action can automatically generate code based on a TypeSchema specification.

Inputs

format

Required The target language, possible values are: csharp, go, java, php, python, ruby, rust, typescript or visualbasic.

config

The generator config where you can configure a namespace for the generated code i.e. namespace=org.typeschema.generator for Java.

source

Required Location of the TypeSchema source, this can be either a local file at your repository or a remote source like an https:// url or a TypeHub source i.e. typehub://apioo:developer@1.0.1

output

Required The output directory where the generated files are placed. NOTE the action will delete all files from this directory before code generation to have a clean state and to remove files which are no longer needed.

Example usage

uses: apioo/typeschema-generator-action@v1
with:
  format: 'java'
  config: 'namespace=org.typeschema.generator'
  source: './typeschema.json'
  output: './output'