IBM / go-sdk-core

The go-sdk-core repository contains core functionality required by Go code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
30 stars 24 forks source link

Empty path param improvements #71

Closed christiancompton closed 4 years ago

christiancompton commented 4 years ago

This PR adds error handling in the core when Path parameters are the empty string. It handles this explicitly by failing in the ConstructHTTPURL method, as well as using the annotations when validating the struct.

padamstx commented 4 years ago

@christiancompton I'm going to just close this PR, as I'm going to be delivering a larger set of changes related to path params (i.e. a different way of handling them altogether) and I'll include these changes in that larger PR.