Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #7

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open

Test #7

wants to merge 53 commits into from

Conversation

JonnyTizz
Copy link

No description provided.

derksacklowski and others added 30 commits October 21, 2016 11:37
Add support for generating get methods without parameters.
Add support for generated classes having types of other generated classes.
Add support for generating psudo enums from the enum values in the classes. Including importing them to the generated classes and exporting from the generated module.
Make use of the exising `isGet` variable to remove the unnecessary `, undefined` that was inserted when no parameters were present in the swagger doc.

Example `paths` block that would fail before:
```
"paths": {
    "/health": {
      "get": {
        "tags": [
          "default-application-service"
        ],
        "summary": "health",
        "operationId": "healthUsingGET",
        "consumes": [
          "application/json"
        ],
        "produces": [
          "*/*"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    }
}
```
JonnyTizz and others added 23 commits April 27, 2017 16:58
Add a global headers map that can be added to, and removed from, with headers that are desired.
`forEach` callback variables were in the wrong order, causing the name and value fields to be swapped. It's now fixed.
 • Update the checks that allow a body to be added to the http requests.
 • Added new fields `isDELETE` and `isNotDELETE` to determine where the
   body should go. `Http.delete(...)` requests don't allow a separate
   parameter.
 • Added the body to the request options in the case that one exists,
   and the request is a `DELETE`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants