Skip to content

Commit

Permalink
Add script to autogen schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xekez committed Oct 6, 2022
1 parent 713c1d7 commit cf82004
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
3 changes: 2 additions & 1 deletion contracts/cw2981-royalties/schema/all_nft_info_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
],
"properties": {
"never": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
5 changes: 3 additions & 2 deletions contracts/cw2981-royalties/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
],
"definitions": {
"Binary": {
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>",
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Empty": {
Expand Down Expand Up @@ -281,7 +281,8 @@
],
"properties": {
"never": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
3 changes: 2 additions & 1 deletion contracts/cw2981-royalties/schema/operators_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
],
"properties": {
"never": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
3 changes: 2 additions & 1 deletion contracts/cw2981-royalties/schema/owner_of_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
],
"properties": {
"never": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
2 changes: 1 addition & 1 deletion contracts/cw721-fixed-price/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"definitions": {
"Binary": {
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>",
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Cw20ReceiveMsg": {
Expand Down
2 changes: 1 addition & 1 deletion contracts/cw721-metadata-onchain/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
],
"definitions": {
"Binary": {
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>",
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Empty": {
Expand Down
8 changes: 8 additions & 0 deletions scripts/schema.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
START_DIR=$(pwd)
for f in ./contracts/*
do
cd "$f"
CMD="cargo run --example schema"
eval $CMD
cd "$START_DIR"
done

0 comments on commit cf82004

Please sign in to comment.