Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes arf/planning-sdk-squad#1011 Why: In order to support parameterized URLs, we need to defer the validation of the service URL value (i.e. myservice.Service.Options.URL) to the point at which it is first needed, instead of when the BaseService struct is constructed. What: This PR contains changes to support the above, plus the following: 1) Added comments here and there to some public structs and methods. 2) Made certain elements within BaseService private since they're not needed outside BaseService. 3) Removed the Version field from the ServiceOptions struct. Instead, the Go generator will be changed to define Version as a field of the generated service struct (e.g. AssistantV1) only when the service is detected to use a "version param". The Go core has no use for the Version field as it is only ever referenced by the generated service code, so better to move the definition of the field there as well. Plus, we only generate the Version-related code if we find that the API definition defines a "version param".
- Loading branch information