Skip to content

Commit

Permalink
Update schema, add schema generation script from DAO DAO
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHartnell committed Sep 14, 2022
1 parent a75fde8 commit 0993e21
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 129 deletions.
18 changes: 0 additions & 18 deletions contracts/cw2981-royalties/schema/contract_info_response.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"type": "string"
}
},
"additionalProperties": false,
"definitions": {
"Empty": {
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
Expand Down
25 changes: 0 additions & 25 deletions contracts/cw2981-royalties/schema/instantiate_msg.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"type": "string"
}
},
"additionalProperties": false,
"definitions": {
"Empty": {
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
Expand Down
18 changes: 0 additions & 18 deletions contracts/cw721-base/schema/contract_info_response.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"type": "string"
}
},
"additionalProperties": false,
"definitions": {
"Empty": {
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
Expand Down
25 changes: 0 additions & 25 deletions contracts/cw721-base/schema/instantiate_msg.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"type": "string"
}
},
"additionalProperties": false,
"definitions": {
"Empty": {
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"type": "string"
}
},
"additionalProperties": false,
"definitions": {
"Empty": {
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
Expand Down
25 changes: 0 additions & 25 deletions contracts/cw721-metadata-onchain/schema/instantiate_msg.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"type": "string"
}
},
"additionalProperties": false,
"definitions": {
"Empty": {
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
Expand Down
11 changes: 11 additions & 0 deletions scripts/schema.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

START_DIR=$(pwd)
for f in ./contracts/*
do
echo "generating schema for $f"
cd "$f"
CMD="cargo run --example schema"
eval $CMD > /dev/null
cd "$START_DIR"
done

0 comments on commit 0993e21

Please sign in to comment.