{ "lexicon": 1, "id": "sh.weaver.domain.resolveByDomain", "defs": { "main": { "type": "query", "description": "Resolve a publication by its custom domain.", "parameters": { "type": "params", "required": [ "domain" ], "properties": { "domain": { "type": "string", "description": "The custom domain to resolve (e.g., myblog.com)." } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": [ "publication" ], "properties": { "publication": { "type": "ref", "ref": "sh.weaver.domain.defs#publicationView" } } } }, "errors": [ { "name": "DomainNotFound" } ] } } }