This action can automatically generate code based on a TypeSchema specification.
Required The target language, possible values are: csharp
, go
, java
, php
, python
, ruby
, rust
,
typescript
or visualbasic
.
The generator config where you can configure a namespace for the generated code i.e.
namespace=org.typeschema.generator
for Java.
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]
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.
uses: apioo/typeschema-generator-action@v1
with:
format: 'java'
config: 'namespace=org.typeschema.generator'
source: './typeschema.json'
output: './output'