Skip to content

GitHub action to automatically generate code based on a TypeSchema specification.

License

Notifications You must be signed in to change notification settings

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

12 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:[email protected]

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'