Skip to content

Instantly share code, notes, and snippets.

@rottenlawns
Last active May 14, 2025 22:43
Show Gist options
  • Save rottenlawns/6c8d0998a777efcd7527e6953fdfa282 to your computer and use it in GitHub Desktop.
Save rottenlawns/6c8d0998a777efcd7527e6953fdfa282 to your computer and use it in GitHub Desktop.
lorcana coach
{
"openapi": "3.0.1",
"info": {
"title": "Lorcana Deck Validator",
"version": "1.0.0",
"description": "Validate a Disney Lorcana deck for legality and ink identity."
},
"paths": {
"/validate": {
"post": {
"summary": "Validate Lorcana Deck",
"operationId": "validateDeck",
"security": [{ "ApiKeyAuth": [] }],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"decklist": {
"type": "string",
"description": "Full decklist with card name + subtitle per line"
}
},
"required": ["decklist"]
}
}
}
},
"responses": {
"200": {
"description": "Validation result",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"deck_legal": { "type": "boolean" },
"ink_pairing": { "type": "string" },
"invalid_cards": {
"type": "array",
"items": { "type": "string" }
},
"validated_cards": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"ink": { "type": "string" },
"inkable": { "type": "boolean" },
"legal": { "type": "boolean" },
"set": { "type": "string" },
"effect": { "type": "string" },
"FRC": { "type": "string" },
"ECI": { "type": "string" }
}
}
}
}
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "x-api-key"
}
}
},
"security": [{ "ApiKeyAuth": [] }]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment