diff --git a/_package/src/types/Chain.ts b/_package/src/types/Chain.ts index 25f52eb..82f0f77 100644 --- a/_package/src/types/Chain.ts +++ b/_package/src/types/Chain.ts @@ -223,6 +223,9 @@ export interface Chain { denom: Denom; amount: Amount; }[]; + /** + * [Optional] The list of IBC channels that are supported by the chain. + */ ibc_channels?: | { channel?: { diff --git a/_package/src/zods/Chain.ts b/_package/src/zods/Chain.ts index 544cf44..1ff6d59 100644 --- a/_package/src/zods/Chain.ts +++ b/_package/src/zods/Chain.ts @@ -514,10 +514,7 @@ export const ChainSchema = z ) .optional(), }) - .strict() - .describe( - "[Optional] The list of IBC channels that are supported by the chain." - ), + .strict(), z .object({ channel: z @@ -529,10 +526,7 @@ export const ChainSchema = z .strict() .optional(), }) - .strict() - .describe( - "[Optional] The list of IBC channels that are supported by the chain." - ), + .strict(), ]; const errors = schemas.reduce( (errors: z.ZodError[], schema) => @@ -551,6 +545,9 @@ export const ChainSchema = z }); } }) + .describe( + "[Optional] The list of IBC channels that are supported by the chain." + ) .optional(), }) .strict() diff --git a/chain.schema.json b/chain.schema.json index 61a1da9..bd9f635 100644 --- a/chain.schema.json +++ b/chain.schema.json @@ -668,8 +668,7 @@ } } }, - "additionalProperties": false, - "description": "[Optional] The list of IBC channels that are supported by the chain." + "additionalProperties": false }, { "type": "object", @@ -691,10 +690,10 @@ "required": ["chain_id"] } }, - "additionalProperties": false, - "description": "[Optional] The list of IBC channels that are supported by the chain." + "additionalProperties": false } - ] + ], + "description": "[Optional] The list of IBC channels that are supported by the chain." } }, "additionalProperties": false