Skip to content

4.1.0 extras with no valid syntax in client #60

Description

@rperne

When swagger has

"/forms/data/{id}": {
      "get": {
        "operationId": "getFormDataById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "nullable": true
            }
          },
{
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "nullable": true
            }
          },

generated client code has extras like this

 r'parameters': [{r'name': r'offset', r'in': r'query', r'required': false, r'schema': {r'type': r'number', r'nullable': true}}, {r'name': r'limit', r'in': r'query', r'required': false, r'schema': {r'type': r'number', r'nullable': true}}, {r'name': r'sortBy', r'in': r'query', r'required': false, r'schema': {r'type': r'string', r'nullable': true}}, {r'name': r'sortOrder', r'in': r'query', r'requi...

which is invalid Dart syntax and is issueing in no generation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions