{
    "definitions": {
        "post": {
            "$schema": "http://json-schema.org/draft-04/schema",
            "definitions": {
                "created_at": {
                    "description": "when post was created",
                    "example": "2012-01-01T12:00:00Z",
                    "format": "date-time",
                    "type": [
                        "string"
                    ]
                },
                "id": {
                    "description": "unique identifier of post",
                    "example": "01234567-89ab-cdef-0123-456789abcdef",
                    "format": "uuid",
                    "type": [
                        "string"
                    ]
                },
                "identity": {
                    "$ref": "#/definitions/post/definitions/id"
                },
                "updated_at": {
                    "description": "when post was updated",
                    "example": "2012-01-01T12:00:00Z",
                    "format": "date-time",
                    "type": [
                        "string"
                    ]
                }
            },
            "description": "FIXME",
            "links": [
                {
                    "description": "Create a new post.",
                    "href": "/posts",
                    "method": "POST",
                    "rel": "create",
                    "schema": {
                        "properties": {},
                        "type": [
                            "object"
                        ]
                    },
                    "title": "Create"
                },
                {
                    "description": "Delete an existing post.",
                    "href": "/posts/{(%23%2Fdefinitions%2Fpost%2Fdefinitions%2Fidentity)}",
                    "method": "DELETE",
                    "rel": "destroy",
                    "title": "Delete"
                },
                {
                    "description": "Info for existing post.",
                    "href": "/posts/{(%23%2Fdefinitions%2Fpost%2Fdefinitions%2Fidentity)}",
                    "method": "GET",
                    "rel": "self",
                    "title": "Info"
                },
                {
                    "description": "List existing posts.",
                    "href": "/posts",
                    "method": "GET",
                    "rel": "instances",
                    "title": "List"
                },
                {
                    "description": "Update an existing post.",
                    "href": "/posts/{(%23%2Fdefinitions%2Fpost%2Fdefinitions%2Fidentity)}",
                    "method": "PATCH",
                    "rel": "update",
                    "schema": {
                        "properties": {},
                        "type": [
                            "object"
                        ]
                    },
                    "title": "Update"
                }
            ],
            "properties": {
                "created_at": {
                    "$ref": "#/definitions/post/definitions/created_at"
                },
                "id": {
                    "$ref": "#/definitions/post/definitions/id"
                },
                "updated_at": {
                    "$ref": "#/definitions/post/definitions/updated_at"
                }
            },
            "title": "Post",
            "type": [
                "object"
            ]
        },
        "user": {
            "$schema": "http://json-schema.org/draft-04/schema",
            "definitions": {
                "created_at": {
                    "description": "when user was created",
                    "example": "2012-01-01T12:00:00Z",
                    "format": "date-time",
                    "type": [
                        "string"
                    ]
                },
                "id": {
                    "description": "unique identifier of user",
                    "example": "01234567-89ab-cdef-0123-456789abcdef",
                    "format": "uuid",
                    "type": [
                        "string"
                    ]
                },
                "identity": {
                    "$ref": "#/definitions/user/definitions/id"
                },
                "updated_at": {
                    "description": "when user was updated",
                    "example": "2012-01-01T12:00:00Z",
                    "format": "date-time",
                    "type": [
                        "string"
                    ]
                }
            },
            "description": "FIXME",
            "links": [
                {
                    "description": "Create a new user.",
                    "href": "/users",
                    "method": "POST",
                    "rel": "create",
                    "schema": {
                        "properties": {},
                        "type": [
                            "object"
                        ]
                    },
                    "title": "Create"
                },
                {
                    "description": "Delete an existing user.",
                    "href": "/users/{(%23%2Fdefinitions%2Fuser%2Fdefinitions%2Fidentity)}",
                    "method": "DELETE",
                    "rel": "destroy",
                    "title": "Delete"
                },
                {
                    "description": "Info for existing user.",
                    "href": "/users/{(%23%2Fdefinitions%2Fuser%2Fdefinitions%2Fidentity)}",
                    "method": "GET",
                    "rel": "self",
                    "title": "Info"
                },
                {
                    "description": "List existing users.",
                    "href": "/users",
                    "method": "GET",
                    "rel": "instances",
                    "title": "List"
                },
                {
                    "description": "Update an existing user.",
                    "href": "/users/{(%23%2Fdefinitions%2Fuser%2Fdefinitions%2Fidentity)}",
                    "method": "PATCH",
                    "rel": "update",
                    "schema": {
                        "properties": {},
                        "type": [
                            "object"
                        ]
                    },
                    "title": "Update"
                }
            ],
            "properties": {
                "created_at": {
                    "$ref": "#/definitions/user/definitions/created_at"
                },
                "id": {
                    "$ref": "#/definitions/user/definitions/id"
                },
                "updated_at": {
                    "$ref": "#/definitions/user/definitions/updated_at"
                }
            },
            "title": "User",
            "type": [
                "object"
            ]
        }
    },
    "description": "Testing schema for Prmd RakeTasks",
    "links": [
        {
            "href": "https://prmd.rake_task_test.io",
            "rel": "self"
        }
    ],
    "properties": {
        "post": {
            "$ref": "#/definitions/post"
        },
        "user": {
            "$ref": "#/definitions/user"
        }
    },
    "title": "Rake Task Test",
    "type": [
        "object"
    ]
}