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

https://github.com/tcd/schemagic


https://github.com/tcd/schemagic

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

          

# Schemagic

![Ruby Version](https://img.shields.io/badge/Ruby->=%202.7.0-CC342D.svg)
[![License](https://img.shields.io/github/license/tcd/eddy)](https://github.com/tcd/schemagic/blob/master/LICENSE)

Generate JSON schemas for Rails models using [YARD](https://github.com/lsegal/yard) doc comments.

***WIP:** Generate Rails models from JSON schemas.*

## Installation

### 1. Add this line to your application's Gemfile:

```ruby
gem "schemagic", github: "tcd/schemagic" # issues with Google Authenticator & RubyGems; have not published yet
```

### 2. Install by running:

```bash
bundle install
```

### 3. Generate an initializers for configuration:

```bash
rails schemagic:install
```

### 4. Generate some JSON schemas:

```bash
rails schemagic:from_yard
```

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).