Parameters of type array that define an enum at the parameter root, versus on the items of the parameter, are incorrect since the root enum would define possible array values. We want to define possible values for strings in the array. Move those enums under items. NOTE: the parameter index is hardcoded...I see this done one other place in the file already but it makes me nervous. There is probably a smarter way to search for an array element with a value?
SavedSearchExecuteRequestV1 defined Parameters object with string values and another parameters object with no defined value. Prefer the uppercase one since it's more specific.
AccessTokenResponseV1 doesn't define any required fields, so in typescript the accessToken is string | undefined. This makes it incompatible with strings. Seems like if we have a token response, it's definitely going to have a token in it.
Three types of fixes:
enum
at the parameter root, versus on theitems
of the parameter, are incorrect since the rootenum
would define possible array values. We want to define possible values for strings in the array. Move thoseenum
s underitem
s. NOTE: the parameter index is hardcoded...I see this done one other place in the file already but it makes me nervous. There is probably a smarter way to search for an array element with a value?SavedSearchExecuteRequestV1
definedParameters
object with string values and anotherparameters
object with no defined value. Prefer the uppercase one since it's more specific.AccessTokenResponseV1
doesn't define any required fields, so in typescript theaccessToken
isstring | undefined
. This makes it incompatible withstring
s. Seems like if we have a token response, it's definitely going to have a token in it.