cw-schema 3.0.5

A dependency for CosmWasm contracts to generate schema files for their messages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use cw_schema::Schema;

#[test]
fn can_decode_example() {
    let example = include_str!("example.json");
    let _: Schema = serde_json::from_str(example).unwrap();
}

#[test]
fn snapshot_jsonschema() {
    let schema = schemars::schema_for!(Schema);
    insta::assert_json_snapshot!(schema);
}