From 4548469ff5f79015f9514fc19365cb2fc169d26e Mon Sep 17 00:00:00 2001 From: ALPAC-4 Date: Tue, 19 Mar 2024 17:40:31 +0900 Subject: [PATCH] fix: fix description position --- _package/src/types/Chain.ts | 3 +++ _package/src/zods/Chain.ts | 13 +++++-------- chain.schema.json | 9 ++++----- 3 files changed, 12 insertions(+), 13 deletions(-) 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