kotas/json_schema_rails

View on GitHub
lib/generators/schema/controller/USAGE

Summary

Maintainability
Test Coverage
Description:
  Generates new JSON Schema files for controller.

  See http://json-schema.org/ for JSON Schema syntax.

Example:

  rails generate schema:controller posts create update

  This will create:
    app/schemas/posts/create.yml
    app/schemas/posts/update.yml