Sha256: a15e14c0a7ec79b8be2b61275d6b19a330973a6c13b9d653dbddbfa9050e39f2

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Users schema based on JSON API",
  "type": "object",
  "required": [
    "data"
  ],
  "data": {
    "description": "List of user resources.",
    "type": "array",
    "items": {
      "type": "object",
      "required": [
        "type",
        "id"
      ],
      "properties": {
        "type": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "attributes": {
          "required": [
            "first-name",
            "last-name",
            "email",
            "authentication-token"
          ],
          "properties": {
            "first-name": {
              "type": "string"
            },
            "last-name": {
              "type": "string"
            },
            "email": {
              "type": "string"
            },
            "authentication-token": {
              "type": "string"
            },
            "created-at": {
              "type": "string",
              "format": "date-time"
            },
            "updated-at": {
              "type": "string",
              "format": "date-time"
            }
          }
        }
      }
    },
    "uniqueItems": true
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voyage-1.44.0.14 lib/voyage/templates/specs/support/api/schemas/user.json
voyage-1.44.0.13 lib/voyage/templates/specs/support/api/schemas/user.json
voyage-1.44.0.11 lib/voyage/templates/specs/support/api/schemas/user.json
voyage-1.44.0.12 lib/voyage/templates/specs/support/api/schemas/user.json
voyage-1.44.0.10 lib/voyage/templates/specs/support/api/schemas/user.json