mashery/iodocs

parameter type integer issue

codezninja opened this issue · 2 comments

So this could me totally having no idea what I'm doing. I've setup a basic method and one of my parameters is an optional integer. When nothing is set and a call is made the parameter gets added to the url as -1. Is there something I did wrong? Here's the json I have for the parameter

"WsAssetGET": {
          "name": "WsAsset",
          "description": "Returns asset/list of assets for a given param information, urls, thumbnail,reference file,associated files,captions,assocaited links and metadata.",
          "httpMethod": "GET",
          "protocol": "REST",
          "parameters": {
            "apiv": {
              "default": "5",
              "required": true,
              "type": "integer",
              "description": "The api version; only version 5 supported.",
              "location": "path"
            },
            "start": {
              "required": false,
              "type": "integer",
              "description": "Will return a subset of available assets. Used primarily for pagination. Default is set to 0"
            },
            "end": {
              "required": false,
              "type": "integer",
              "description": "Will return a subset of available assets. Used primarily for pagination. Default is set to start+20 Zero-based inclusive index: E.G. &start=0&send=4 will return five programs from the beginning."
            },
            "folder": {
              "required": false,
              "type": "integer",
              "description": "filter for folder id for a given account"
            },
          },
          "path": "/ws/ws_asset/apiv/{apiv}"
}

2014-09-18_1252

you are not doing anything wrong. this is a known bug with the form generator and should be fixed soon.

Has this been fixed?