swagger-api/swagger-codegen

[JAX-RS] Missing import for http PATCH

Open

#1.751 geöffnet am 22. Dez. 2015

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)HTML (5.474 Forks)batch import
Enhancement: GeneralServer: Javahelp wanted

Repository-Metriken

Stars
 (12.701 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Generated code does not contain import for patch requests. import io.swagger.jaxrs.PATCH; is missing spec file

"patch": {
        "tags": [
          "box"
        ],
        "summary": "Patches a box Meta data",
        "description": "",
        "operationId": "updateBox",
        "consumes": [
          "application/json"
        ],
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "boxId",
            "description": "Id of the box to be edited",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "box",
            "description": "JSON Patch format of the attributes to be edited in a box",
            "required": true,
            "schema": {
              "type":"array",
              "items":{
                "$ref": "#/definitions/PatchDocument"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Box was edited and the a box object returned with the new information ",
            "schema": {
              "$ref": "#/definitions/Box"
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "422": {
            "description": "Unprocessable entry"
          }
        }
      }

Contributor Guide