Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moqada/jsst
:blowfish: A CLI generating Go struct file from JSON Hyper Schema (via prmd)
https://github.com/moqada/jsst
Last synced: 3 days ago
JSON representation
:blowfish: A CLI generating Go struct file from JSON Hyper Schema (via prmd)
- Host: GitHub
- URL: https://github.com/moqada/jsst
- Owner: moqada
- License: mit
- Created: 2016-03-30T21:40:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T09:31:06.000Z (over 7 years ago)
- Last Synced: 2024-06-20T05:23:16.668Z (5 months ago)
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jsst
[![Build Status][travis-image]][travis-url]
[![Doc][godoc-image]][godoc-url]
[![License][license-image]][license-url]A CLI Generating Go struct file from JSON Hyper Schema (via [prmd](https://github.com/interagent/prmd)).
***WIP***
## Demo
```
# from file
$ jsst schema.json > struct.go
# from stdin
$ cat schema.json | jsst > struct.go
# change package
$ jsst schema.json -p schema > struct.go
```## Installation
```
$ go get github.com/moqada/jsst
```## Usage
```
usage: jsst [] []Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-p, --package="main" Package name for Go struct file
--version Show application version.Args:
[] Path of JSON Schema
```Output Example: [./convertor_test.go](./convertor_test.go)
## Todo
- [ ] Add tests
- [ ] Support `anyOf`, `allOf`, `oneOf`
- [ ] Support Multiple types[godoc-url]: https://godoc.org/github.com/moqada/jsst
[godoc-image]: https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square
[travis-url]: https://travis-ci.org/moqada/jsst
[travis-image]: https://img.shields.io/travis/moqada/jsst.svg?style=flat-square
[license-url]: http://opensource.org/licenses/MIT
[license-image]: https://img.shields.io/github/license/moqada/jsst.svg?style=flat-square