Skip to content

Commit

Permalink
fix: fix description position
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 committed Mar 19, 2024
1 parent 23a799e commit 4548469
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
3 changes: 3 additions & 0 deletions _package/src/types/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?: {
Expand Down
13 changes: 5 additions & 8 deletions _package/src/zods/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) =>
Expand All @@ -551,6 +545,9 @@ export const ChainSchema = z
});
}
})
.describe(
"[Optional] The list of IBC channels that are supported by the chain."
)
.optional(),
})
.strict()
Expand Down
9 changes: 4 additions & 5 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,7 @@
}
}
},
"additionalProperties": false,
"description": "[Optional] The list of IBC channels that are supported by the chain."
"additionalProperties": false
},
{
"type": "object",
Expand All @@ -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
Expand Down

0 comments on commit 4548469

Please sign in to comment.