-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add path param support #56
Conversation
578954f
to
4943986
Compare
@mdeuser could you review this real quick? its a change to enable parameters as children of Paths |
@jessealva, can we unit test this? |
whisk/api.go
Outdated
@@ -146,13 +146,51 @@ type ApiSwagger struct { | |||
SwaggerName string `json:"swagger,omitempty"` | |||
BasePath string `json:"basePath,omitempty"` | |||
Info *ApiSwaggerInfo `json:"info,omitempty"` | |||
Paths map[string]map[string]*ApiSwaggerOperation `json:"paths,omitempty"` // Paths["/a/path"]["get"] -> a generic object | |||
Paths map[string]*ApiSwaggerPath `json:"paths,omitempty"` // Paths["/a/path"]["get"] -> a generic object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the comment is incorrect. should be something like
// Paths["/a/path"] -> a path (ApiSwaggerPath) object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the comment as I think its no longer required as it was there when the object was a map of maps.
…as the object is no longer a map of maps
4943986
to
7c36676
Compare
@jessealva, looks great! Do you have tests for this at least in incubator-openwhisk-cli? |
No description provided.