{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "content-type": "application/x-www-form-urlencoded",
    "endpoint": "/token",
    "id": "http://localhost:3000/schemas/token-password-grant-request.json#",
    "method": "POST",
    "properties": {
        "code": {
            "description": "The code received with the authentication response.",
            "type": "string"
        },
        "grant_type": {
            "description": "Must be set to password.",
            "enum": [
                "password"
            ],
            "type": "string"
        },
        "password": {
            "description": "The resource owner password.",
            "type": "string"
        },
        "scope": {
            "description": "Optional requested scope values for the access token.",
            "type": "string"
        },
        "username": {
            "description": "The resource owner username.",
            "type": "string"
        }
    },
    "required": [
        "code",
        "grant_type"
    ],
    "title": "Token password grant request",
    "type": "object"
}