{ "$defs": { "app_sort_by": { "oneOf": [ { "const": "name" }, { "const": "created_at" }, { "const": "updated_at" }, { "const": "competition_status" } ], "type": "string" }, "competition_status": { "oneOf": [ { "const": "pending" }, { "const": "active" }, { "const": "closed" } ], "type": "string" }, "sort_order": { "oneOf": [ { "const": "asc" }, { "const": "desc" } ], "type": "string" }, "vote_type": { "oneOf": [ { "const": "basic" }, { "const": "premium" } ], "type": "string" }, "competition": { "properties": { "guid": { "type": "string" }, "name": { "type": "string" }, "status": { "$ref": "#/$defs/competition_status" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": [ "guid", "name", "status", "start_at", "end_at", "created_at", "updated_at" ], "type": "object" }, "competition_participant": { "properties": { "guid": { "type": "string" }, "competition_id": { "type": "string" }, "competitor_id": { "type": "string" } }, "required": [ "guid", "competition_id", "competitor_id" ], "type": "object" }, "competitor": { "properties": { "guid": { "type": "string" }, "name": { "type": "string" } }, "required": [ "guid", "name" ], "type": "object" }, "vote": { "properties": { "guid": { "type": "string" }, "competition_participant_id": { "type": "string" }, "voter_id": { "type": "string" }, "type": { "type": "string" }, "points": { "type": "integer" } }, "required": [ "guid", "competition_participant_id", "voter_id", "type", "points" ], "type": "object" }, "voter": { "properties": { "guid": { "type": "string" }, "name": { "type": "string" }, "asdf": { "type": "string" } }, "required": [ "guid", "name", "asdf" ], "type": "object" } }, "additionalProperties": true, "properties": { "authenticated": { "const": true, "type": "boolean" }, "body": { "properties": { "guid": { "type": "string" }, "name": { "type": "string" }, "status": { "$ref": "#/$defs/competition_status" }, "start_at": { "type": "string" }, "end_at": { "type": "string" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": [ "guid", "name", "status", "start_at", "end_at", "created_at", "updated_at" ], "type": "object" }, "rawBody": { "type": "object" }, "headers": { "type": "object" }, "method": { "const": "POST", "type": "string" }, "parameterizedUrl": { "const": "/competitions", "type": "string" }, "path": { "type": "string" }, "query": { "type": "object" }, "url": { "type": "string" } }, "required": [ "body", "rawBody", "query", "path", "url", "method" ], "type": "object" }