rabbah opened a new issue #446: cannot recreate API from exported swagger URL: https://github.com/apache/incubator-openwhisk-cli/issues/446 1. create an API `my_service` 2. `wsk api get my_service --format json > swagger.json` 3. `wsk api create -c swagger.json -d` I'd expect step 3 to work but it doesn't: ``` [/commands.parseSwaggerApi]:988:[Err] Swagger context is not string as expected [whisk-cli/commands/api.go]:189:[Err] parseSwaggerApi() error: Error parsing swagger file 'swagger.json': invalid cast [main.main ]:068:[Inf] err object type: *whisk.WskError [main.main ]:072:[Err] Got a *whisk.WskError error: &whisk.WskError{RootErr:(*errors.errorString)(0xc00006ad80), ExitCode:1, DisplayMsg:true, MsgDisplayed:false, DisplayUsage:true, DisplayPrefix:true, ApplicationError:false, TimedOut:false} error: Unable to parse swagger file: Error parsing swagger file 'swagger.json': invalid cast Run 'wsk --help' for usage. ``` @mdeuser any ideas?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
