https://github.com/nofun97/adobo
Jsonschema to Go type generator
https://github.com/nofun97/adobo
cli-app code-generation codegenerator golang json jsonschema
Last synced: 5 months ago
JSON representation
Jsonschema to Go type generator
- Host: GitHub
- URL: https://github.com/nofun97/adobo
- Owner: nofun97
- License: apache-2.0
- Created: 2022-05-10T12:10:18.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-17T11:54:54.000Z (12 months ago)
- Last Synced: 2025-06-17T12:42:32.085Z (12 months ago)
- Topics: cli-app, code-generation, codegenerator, golang, json, jsonschema
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Adobo
Adobo generates types from a jsonschema (draft 2019-09) in different languages (currently only
Go).
Adobo is written using [arr.ai](https://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](https://go.dev/) and run the following command:
```sh
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
```sh
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 :crossed_fingers:
### 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](https://arr.ai)
[arr.ai](https://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](https://arr.ai).