https://github.com/coryodaniel/json-schema-rails-rspec-demo
JSON Schema demo with Rails, RSpec, prmd, committee and active model serializers
https://github.com/coryodaniel/json-schema-rails-rspec-demo
Last synced: over 1 year ago
JSON representation
JSON Schema demo with Rails, RSpec, prmd, committee and active model serializers
- Host: GitHub
- URL: https://github.com/coryodaniel/json-schema-rails-rspec-demo
- Owner: coryodaniel
- Created: 2015-12-02T06:12:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T06:14:18.000Z (over 10 years ago)
- Last Synced: 2025-01-21T01:26:21.730Z (over 1 year ago)
- Language: Ruby
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
prmd, json schema 4, committee, rails and rspec demo
* Can 'lists' return a root key w/ the instances under it?
```json
"posts": [{}]
```
* Can 'lists' return a meta key?
* strictProperties vs required vs additionalProperties
* https://github.com/fge/json-schema-validator/wiki/v5:-strictProperties
* add in content
* required on GET vs POST, etc?
* Using the schemata files, we dont have to recombine the schema might be nicer to do that so Guard can watch those json files...
* Make some nice rspec matchers for all that jazz in posts_requests_spec.rb
## Build docs & combine schema
```
cd docs
bundle exec prmd combine --meta meta.json schemata/ > schema.json
bundle exec prmd verify schema.json
bundle exec prmd doc schema.json > schema.md
cd ..
```
## Run tests
```
rspec
```