Sha256: 4e6a552644e6f22a3ad1a8ef3b648ca12dcc5222f5d814088f026559ab8d69ee

Contents?: true

Size: 804 Bytes

Versions: 6

Compression:

Stored size: 804 Bytes

Contents

---
"$schema": "http://json-schema.org/draft-04/hyper-schema#"
title: Test Schema API
type: object
links:
  - href: http://example.com
    rel: self
properties:
  posts:
    type: object
    links:
      - method: POST
        href: "/posts"
        rel: create
        schema:
          type: object
          properties:
            post:
              "$ref": "#/definitions/post"
      - method: PUT
        href: "/posts/{id}"
        rel: update
        schema:
          type: object
          properties:
            post:
              "$ref": "#/definitions/post"

definitions:
  post:
    type: object
    additionalProperties: false
    required:
      - title
      - body
    properties:
      title:
        type: string
      body:
        type: string
      author:
        type: string

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
json_schema_rails-0.2.1 spec/fixtures/hyper_schema.yml
json_schema_rails-0.2.0 spec/fixtures/hyper_schema.yml
json_schema_rails-0.1.0 spec/fixtures/hyper_schema.yml
json_schema_rails-0.0.3 spec/fixtures/hyper_schema.yml
json_schema_rails-0.0.2 spec/fixtures/hyper_schema.yml
json_schema_rails-0.0.1 spec/fixtures/hyper_schema.yml