mashery / iodocs

Interactive API documentation system
MIT License
1.89k stars 415 forks source link

Using a parameter named 'length' #244

Closed chadicus closed 7 years ago

chadicus commented 9 years ago

It seems that i cannot name a parameter length. With this json the parameters do not render properly. Is this because "length" has some special meaning within the "parameters" object?

"my-post": {                                                                                       
    "description": "Create a new foo.",                                                              
    "httpMethod": "POST",                                                                                
    "name": "Create",                                                                                    
    "path": "/foos",                                                                                 
     "parameters": {                                                                                      
        "length": {                                                                                      
            "name": "length",                                                                            
            "title": "length",                                                                           
            "description": "The text length of the foo. Max value is 6.",                            
            "required": true,                                                                            
            "type": "integer",                                                                           
            "default": 6                                                                                 
        }                                                                                                
    }                                                                                                    
}

screenshot-0 0 0 0 3000 2015-08-19 12-41-19