Skip to content

Commit d2edbc1

Browse files
committed
Remove JsonSchema requirement from CustomMsg
1 parent 03e23ee commit d2edbc1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ and this project adheres to
3939
- cosmwasm-vm: The testing functions `cosmwasm_vm::testing::*` do not require
4040
the contract's message types to implement `schemars::JsonSchema` anymore. This
4141
makes the use of `schemars` optional for contracts. ([#2201])
42+
- cosmwasm-std: Remove `schemars::JsonSchema` requirement from `CustomMsg`.
43+
([#2201])
4244

4345
## Fixed
4446

packages/std/src/results/cosmos_msg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use super::Empty;
4848
///
4949
/// impl CustomQuery for MyMsg {}
5050
/// ```
51-
pub trait CustomMsg: Serialize + Clone + fmt::Debug + PartialEq + JsonSchema {}
51+
pub trait CustomMsg: Serialize + Clone + fmt::Debug + PartialEq {}
5252

5353
impl CustomMsg for Empty {}
5454

0 commit comments

Comments
 (0)