Skip to content

Commit

Permalink
Adjust ZerionBalanceSchema to allow undefined attributes.fungibleInfo…
Browse files Browse the repository at this point in the history
….description (#1622)

Changes the validation of ZerionBalanceSchema.attributes.fungibleInfo.description in order to allow an undefined value for the field
  • Loading branch information
hectorgomezv authored Jun 10, 2024
1 parent 213c897 commit 8f90c03
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ZerionImplementationSchema = z.object({
const ZerionFungibleInfoSchema = z.object({
name: z.string().nullable(),
symbol: z.string().nullable(),
description: z.string().nullable(),
description: z.string().nullish().default(null),
icon: z
.object({
url: z.string().nullable(),
Expand Down Expand Up @@ -67,3 +67,5 @@ export const ZerionBalanceSchema = z.object({
export const ZerionBalancesSchema = z.object({
data: z.array(ZerionBalanceSchema),
});

// TODO: add schema tests.

0 comments on commit 8f90c03

Please sign in to comment.