Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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).

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