Issue / Symptom
model_pool_response_resource.go is missing "os" dependency.
It appears definition File gets converted to *os.File when it should be be converted to a struct.
package ringcentral
type PoolResponseResource struct {
RendererId string `json:"rendererId,omitempty"`
MessageId string `json:"messageId,omitempty"`
ExtensionId string `json:"extensionId,omitempty"`
ExtensionNumber string `json:"extensionNumber,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
Street string `json:"street,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
CountryId string `json:"countryId,omitempty"`
CompanyName string `json:"companyName,omitempty"`
FaxNumber string `json:"faxNumber,omitempty"`
ContactPhone string `json:"contactPhone,omitempty"`
Email string `json:"email,omitempty"`
LanguageCode string `json:"languageCode,omitempty"`
LanguageId string `json:"languageId,omitempty"`
FooterType float32 `json:"footerType,omitempty"`
CoverIndex float32 `json:"coverIndex,omitempty"`
CoverPageText string `json:"coverPageText,omitempty"`
SourceFiles []*os.File `json:"sourceFiles,omitempty"`
MessageServers []string `json:"messageServers,omitempty"`
TouchInterval int64 `json:"touchInterval,omitempty"`
}
The definition includes the following:
PoolResponseResource:
type: "object"
properties:
# ...
type: "array"
items:
$ref: "#/definitions/File"
File:
type: "object"
properties:
sourceFile:
type: "string"
originalFileName:
type: "string"
The File struct is still created:
package ringcentral
type File struct {
SourceFile string `json:"sourceFile,omitempty"`
OriginalFileName string `json:"originalFileName,omitempty"`
}
Should have []File:
type PoolResponseResource struct {
SourceFiles []File `json:"sourceFiles,omitempty"`
}
Issue / Symptom
model_pool_response_resource.gois missing "os" dependency.It appears definition
Filegets converted to*os.Filewhen it should be be converted to a struct.The definition includes the following:
The
Filestruct is still created:Should have
[]File: