{
    "swagger": "2.0",
    "schemes": [
        "http",
        "https"
    ],
    "basePath": "/foo",
    "host": "example.com",
    "info": {
        "version": "",
        "title": "Simple API",
        "description": ""
    },
    "paths": {
        "/users": {
            "get": {
                "operationId": "GET_users",
                "responses": {
                    "200": {
                        "description": "",
                        "schema": {
                            "$ref": "#/definitions/user"
                        }
                    }
                },
                "parameters": [
                    {
                        "$ref": "#/parameters/trait:myTrait:page"
                    },
                    {
                        "$ref": "#/parameters/trait:myTrait:limit"
                    },
                    {
                        "$ref": "#/parameters/trait:myTrait:authorization"
                    }
                ]
            }
        }
    },
    "definitions": {
        "user": {
            "title": "user",
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                }
            },
            "required": [
                "name"
            ]
        }
    },
    "produces": [
        "application/json"
    ],
    "consumes": [
        "application/json"
    ],
    "parameters": {
        "trait:myTrait:page": {
            "name": "page",
            "in": "query",
            "required": false,
            "type": "string"
        },
        "trait:myTrait:limit": {
            "name": "limit",
            "in": "query",
            "required": false,
            "type": "string"
        },
        "trait:myTrait:authorization": {
            "name": "authorization",
            "in": "header",
            "required": false,
            "type": "string"
        }
    }
}
