Skip to content

Commit

Permalink
make schema
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 16, 2024
1 parent 1420a74 commit ea15a0e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MarketMapQuery",
"title": "QueryMsg",
"oneOf": [
{
"description": "Parameters queries the parameters of the module.",
"type": "object",
"required": [
"params"
Expand Down Expand Up @@ -66,16 +65,17 @@
],
"definitions": {
"CurrencyPair": {
"description": "CurrencyPair is the standard representation of a pair of assets, where one (Base) is priced in terms of the other (Quote)",
"type": "object",
"required": [
"Base",
"Quote"
"base",
"quote"
],
"properties": {
"Base": {
"base": {
"type": "string"
},
"Quote": {
"quote": {
"type": "string"
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "OracleQuery",
"title": "QueryMsg",
"oneOf": [
{
"type": "object",
"required": [
"get_all_currency_pairs"
],
"properties": {
"get_all_currency_pairs": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
Expand All @@ -24,11 +11,15 @@
"get_price": {
"type": "object",
"required": [
"currency_pair"
"base",
"quote"
],
"properties": {
"currency_pair": {
"$ref": "#/definitions/CurrencyPair"
"base": {
"type": "string"
},
"quote": {
"type": "string"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -59,24 +50,19 @@
}
},
"additionalProperties": false
}
],
"definitions": {
"CurrencyPair": {
},
{
"type": "object",
"required": [
"Base",
"Quote"
"get_all_currency_pairs"
],
"properties": {
"Base": {
"type": "string"
},
"Quote": {
"type": "string"
"get_all_currency_pairs": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
}
]
}

0 comments on commit ea15a0e

Please sign in to comment.