{
    "definitions": {
        "user": {
            "$schema": "http://json-schema.org/draft-04/schema",
            "definitions": {
                "id": {
                    "description": "unique identifier of user",
                    "example": 1,
                    "readOnly": true,
                    "type": [
                        "integer"
                    ]
                },
                "identity": {
                    "$ref": "#/definitions/user/definitions/id"
                },
                "mail": {
                    "description": "unique user email",
                    "example": "kata0hka@gmail.com",
                    "type": [
                        "string"
                    ]
                },
                "name": {
                    "description": "user name",
                    "example": "kata0hka",
                    "type": [
                        "string"
                    ]
                },
                "password": {
                    "description": "user password",
                    "example": "my_password",
                    "type": [
                        "string"
                    ]
                }
            },
            "description": "User API",
            "links": [
                {
                    "description": "Info for existing user.",
                    "href": "/users/{(%23%2Fdefinitions%2Fuser%2Fdefinitions%2Fidentity)}",
                    "method": "GET",
                    "rel": "self",
                    "title": "Info"
                }
            ],
            "properties": {
                "id": {
                    "$ref": "#/definitions/user/definitions/id"
                },
                "mail": {
                    "$ref": "#/definitions/user/definitions/mail"
                },
                "name": {
                    "$ref": "#/definitions/user/definitions/name"
                },
                "password": {
                    "$ref": "#/definitions/user/definitions/password"
                }
            },
            "stability": "prototype",
            "strictProperties": true,
            "title": "User",
            "type": [
                "object"
            ]
        }
    },
    "description": "Sample Rails5 API",
    "links": [
        {
            "href": "http://0.0.0.0:3000",
            "rel": "self"
        }
    ],
    "properties": {
        "user": {
            "$ref": "#/definitions/user"
        }
    },
    "title": "Sample Rails5 API",
    "type": [
        "object"
    ]
}