Skip to content

Commit

Permalink
IMN-835 - fix query params Attribute kinds array required in zodios p…
Browse files Browse the repository at this point in the history
…atch (#1022)
  • Loading branch information
Viktor-K authored Sep 26, 2024
1 parent 9e58fc5 commit 5cb2a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-clients/template-bff.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export const {{@key}}Endpoints = makeApi([
{{/if}}
{{#if (and (eq type "Query") (eq schema "z.array(z.string()).optional().default([])"))}}
schema: z.union([z.string().optional().transform(v => v ? v.split(",") : undefined).pipe(z.array(z.string()).optional().default([])), z.array(z.string()).optional().default([])]),
{{else if (and (eq type "Query") (eq schema "z.array(AttributeKind)"))}}
schema: z.union([z.string().transform(v => v.split(",")).pipe(z.array(AttributeKind)), z.array(AttributeKind)])
{{else if (and (eq type "Query") (eq schema "z.array(AttributeKind).default([])"))}}
schema: z.union([z.string().transform(v => v.split(",")).pipe(z.array(AttributeKind).default([])), z.array(AttributeKind).default([])])
{{else if (and (eq type "Query") (eq schema "z.array(AgreementState).optional().default([])"))}}
schema: z.union([z.string().optional().transform(v => v ? v.split(",") : undefined ).pipe(z.array(AgreementState).optional().default([])),z.array(AgreementState).optional().default([])])
{{else if (and (eq type "Query") (eq schema "z.array(EServiceDescriptorState).optional().default([])"))}}
Expand Down

0 comments on commit 5cb2a53

Please sign in to comment.