Skip to content

apioo/typeschema-generator-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'