custId and teamid should be optional for ResultsSearchSeris schema#6
custId and teamid should be optional for ResultsSearchSeris schema#6dan-gamble wants to merge 1 commit into
custId and teamid should be optional for ResultsSearchSeris schema#6Conversation
In future should probably look to make this an enum of the minimum that is required i.e. `year + quarter`
|
Hey @dan-gamble, thanks for raising this. Just wanted to clarify what's going on here. The schema you changed ( The request params schema ( const ResultsSearchSeriesParamsSchema = z.object({
// ...
custId: z.optional(z.number()),
teamId: z.optional(z.number()),
// ...
});So you shouldn't need to provide them when making requests. The types are generated from API response samples via |
|
Hi @dan-gamble, did you see my previous comment? I don't want to just close this when you went to the effort of raising a PR. |
In future should probably look to make this an enum of the minimum that is required i.e.
year + quarter