Skip to content

nofun97/adobo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adobo

Adobo generates types from a jsonschema (draft 2019-09) in different languages (currently only Go).

Adobo is written using arr.ai

WARNING: adobo is very much experimental and it also use a very experimental language. Use at your own risk.

How to install

To install, you will need Go and run the following command:

go install github.com/nofun97/adobo

To check if it is installed correctly, run adobo help and it should output the help message.

Usage

Simplest usage is to just run it by pointing to your jsonschema file

adobo path/to/your/schema.json

The previous command will output Go code to your stdout.

For more information, you can run adobo with the --help flag or adobo help.

Future Updates 🤞

Other languages!

adobo wasn't meant to just work with Golang, it should also output to other languages. To do this, it will require A LOT of work.

Other jsonschema

There's a lot of jsonschema versions and it should support other versions. Not to mention, there's more features to support in the 2019-09 draft like enums, different patternProperties, and many more. The suffering never ends.

More arr.ai

arr.ai is the best language ever and this is a totally unbiased comment. Because it's the best language ever, the CLI should be written in arr.ai.