diff --git a/config.schema.json b/config.schema.json index ffcfe0e..ef2682d 100644 --- a/config.schema.json +++ b/config.schema.json @@ -17,7 +17,11 @@ "properties": { "network": { "type": "string", - "enum": ["mainnet", "testnet", "devnet"] + "enum": [ + "mainnet", + "testnet", + "devnet" + ] }, "prelaunch_markets": { "type": "array", @@ -135,7 +139,11 @@ "description": "Ongoing survey configs for typeform survey widget", "items": { "type": "object", - "required": ["surveyLink", "endTime", "pages"], + "required": [ + "surveyLink", + "endTime", + "pages" + ], "properties": { "message": { "type": "string" @@ -218,7 +226,10 @@ "description": "List of banner information to be displayed over the TradingView chart for the required market", "items": { "type": "object", - "required": ["market_id", "content"], + "required": [ + "market_id", + "content" + ], "properties": { "market_id": { "$ref": "#/$defs/market_id" @@ -388,7 +399,10 @@ "additional_ibc_token_info": { "type": "object", "description": "Information for token that (1) is not added on Carbon blockchain or (2) requires packet forwarding.", - "required": ["baseDenom", "chainRoutes"], + "required": [ + "baseDenom", + "chainRoutes" + ], "properties": { "baseDenom": { "type": "string", @@ -428,7 +442,10 @@ "description": "List of perp pool banners", "items": { "type": "object", - "required": ["perp_pool_id", "title"], + "required": [ + "perp_pool_id", + "title" + ], "properties": { "perp_pool_id": { "$ref": "#/$defs/perp_pool_id" @@ -472,6 +489,35 @@ } }, "additionalProperties": false + }, + "announcement_banner": { + "type": "object", + "description": "Custom announcement banner through all or only on specificed paths", + "required": [ + "content" + ], + "patternProperties": { + "show_from": { + "$ref": "#/$defs/show_from" + }, + "show_until": { + "$ref": "#/$defs/show_until" + }, + "content": { + "$ref": "#/$defs/content" + }, + "hideable": { + "$ref": "#/$defs/hideable" + }, + "show_only_on": { + "type": "array", + "description": "List of paths that announcement will be show on. Empty array will be shown on all paths", + "items": { + "type": "string" + }, + "minItems": 0 + } + } } } -} +} \ No newline at end of file