Closed tylergoza closed 8 years ago
Additional information. It doesn't work with yaml as text either.
And in case you need it, here is the json:
{"swagger":"2.0","host":"tardis.epb.net:3500","basePath":"/","schemes":["http"],"info":{"title":"Hapi test minions Documentation","version":"0.0.1a-pre"},"securityDefinitions":{"jwt":{"type":"apiKey","name":"authorization","in":"header"}},"security":[{"jwt":[]}],"tags":[],"paths":{"/":{"get":{"summary":"Get allowed calls","operationId":"get","description":"This will return a list of allowed events.","tags":[""],"responses":{"200":{"schema":{"$ref":"#/definitions/Model 1"},"description":"Successful"}}}}},"definitions":{"Model 1":{"type":"array","items":{"type":"string"}}}}
@tylerwgoza This is a regression bug with the latest version of the Mac app - we'll be pushing out a fix soon.
@abhijitkane Thanks! I'll pass that along to the team.
@tylerwgoza The issue has been fixed in the latest 4.7.0 update.
Perfect. Just verified that this is working correctly now. Thanks!
It's mostly working. Take the following Swagger document:
{
"swagger": "2.0",
"info": {
"title": "Test"
},
"host": "example.com",
"basePath": "/v1",
"schemes": [
"http"
],
"produces": [
"application/json"
],
"paths": {
"/accounts/{accountId}/cards/{cardId}": {
"delete": {
"summary": "Delete a card associated with an account",
"parameters": [
{
"required": true,
"name": "accountId",
"in": "path",
"description": "The identifier for the account",
"type": "integer"
},
{
"required": true,
"name": "cardId",
"in": "path",
"description": "The identifier for the card",
"type": "integer"
}
],
"responses": {
"204": {
"description": "Success"
}
}
}
}
}
}
Importing that generates a request with a URL of:
http://example.com/v1/accounts/:accountId/cards/{cardId}
i.e. the first URL parameter, accountId
, is correctly interpreted, but the second one, cardId
is not.
Attempt to import a swagger.json file from a swagger api server. If this shouldn't work it needs to be noted somewhere in the app that only yaml is supported.