{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/mcornick/clilol/cmd/config", "$ref": "#/$defs/Config", "$defs": { "Config": { "properties": { "address": { "type": "string", "description": "An omg.lol address that you own", "examples": [ "tomservo" ] }, "apikey": { "type": "string", "description": "Your omg.lol API key", "examples": [ "0123456789abcdef0123456789abcdef" ] }, "apikeycmd": { "type": "string", "description": "A command that will output your omg.lol API key", "examples": [ "gopass -o api.omg.lol/tomservo" ] }, "email": { "type": "string", "description": "The email address you use to log in to omg.lol", "examples": [ "tomservo@gizmonics.invalid" ] } }, "additionalProperties": false, "type": "object", "required": [ "address", "email" ], "oneOf": [ { "required": [ "apikey" ] }, { "required": [ "apikeycmd" ] } ] } } }