{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://exitformat.peng.ly/schema/service.json","title":"Exit Format service","type":"object","additionalProperties":false,"required":["name","website","description","deployment","platforms","export","import","verification"],"properties":{"name":{"type":"string","minLength":1},"website":{"type":"string","format":"uri","pattern":"^https://"},"description":{"type":"string","minLength":1,"maxLength":160},"deployment":{"enum":["local","cloud","hybrid","self-hosted"]},"platforms":{"type":"array","items":{"enum":["android","ios","windows","macos","linux","web","browser-extension"]},"uniqueItems":true,"minItems":1},"source":{"type":"string","format":"uri","pattern":"^https://"},"icon":{"type":"string","format":"uri","pattern":"^https://"},"aliases":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"export":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","name","method","steps","formats","data"],"properties":{"id":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"method":{"enum":["file","folder","account","api","qr","copy"]},"formats":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true,"minItems":1},"requirements":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"steps":{"type":"array","items":{"type":"string","minLength":1,"maxLength":140},"uniqueItems":true,"minItems":2,"maxItems":4},"limitations":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"docs":{"type":"string","format":"uri","pattern":"^https://"},"sources":{"type":"array","items":{"type":"string","format":"uri","pattern":"^https://"},"uniqueItems":true},"data":{"type":"object","additionalProperties":false,"required":["included"],"properties":{"included":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true,"minItems":1},"excluded":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true},"unknown":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true}}}}}},"import":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","name","method","steps"],"properties":{"id":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"method":{"enum":["file","folder","account","api","qr","copy","connect"]},"formats":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true},"requirements":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"steps":{"type":"array","items":{"type":"string","minLength":1,"maxLength":140},"uniqueItems":true,"minItems":2,"maxItems":4},"limitations":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true},"docs":{"type":"string","format":"uri","pattern":"^https://"},"sources":{"type":"array","items":{"type":"string","format":"uri","pattern":"^https://"},"uniqueItems":true},"from":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true,"minItems":1},"data":{"type":"object","additionalProperties":false,"required":[],"properties":{"included":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true},"excluded":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true},"unknown":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"uniqueItems":true}},"minProperties":1}},"if":{"type":"object","required":["method"],"properties":{"method":{"const":"connect"}}},"else":{"type":"object","required":["formats"],"properties":{"formats":{"type":"array","minItems":1}}}}},"delete":{"type":"object","additionalProperties":false,"required":["steps"],"properties":{"steps":{"type":"array","items":{"type":"string","minLength":1,"maxLength":140},"uniqueItems":true,"minItems":2,"maxItems":4},"docs":{"type":"string","format":"uri","pattern":"^https://"},"notes":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true}}},"verification":{"type":"object","additionalProperties":false,"required":["status","checked_at"],"properties":{"status":{"enum":["documented","tested"]},"checked_at":{"type":"string","format":"date"}}}}}