Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/survivorbat/go-scheyaml
Ever wanted to turn a JSON schema into an example YAML file? Probably not, but this library allows you to do just that (in a limited fashion).
https://github.com/survivorbat/go-scheyaml
example go jsonchema schema yaml
Last synced: 4 months ago
JSON representation
Ever wanted to turn a JSON schema into an example YAML file? Probably not, but this library allows you to do just that (in a limited fashion).
- Host: GitHub
- URL: https://github.com/survivorbat/go-scheyaml
- Owner: survivorbat
- License: mit
- Created: 2024-09-10T09:53:48.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-19T12:57:10.000Z (5 months ago)
- Last Synced: 2024-10-02T06:02:24.925Z (5 months ago)
- Topics: example, go, jsonchema, schema, yaml
- Language: Go
- Homepage: https://pkg.go.dev/github.com/survivorbat/go-scheyaml
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📅 Schema Yaml
Ever wanted to turn a JSON schema into an example YAML file? Probably not, but this library allows you
to do just that (in a limited fashion).## ⬇️ Installation
`go get github.com/survivorbat/go-scheyaml`
## 📋 Usage
Check out [this example](./examples_test.go)
## ✅ Support
- [x] Feature to override values in output
- [x] Feature to override the comment on a missing default value
- [x] Basic types (string, number, integer, null)
- [x] Object type
- [x] Array
- [ ] Definitions
- [ ] AnyOf
- [ ] AllOf
- [ ] Pattern Properties## 🔭 Plans
- Maybe add templating at some point
- Add a json output method