Packages
Generic Elixir models and portable validation for RelayMark documents and manifests
Current section
Files
Jump to
Current section
Files
priv/relaymark/directives/relay.url_ref.json
{
"$schema": "../schemas/relaymark-directive.schema.json",
"name": "UrlRef",
"ast_type": "relay.url_ref",
"version": 1,
"category": "source",
"description": "A reference to a URL source that grounds nearby content.",
"attributes": {
"url": {
"type": "string",
"required": true,
"description": "Source URL."
},
"label": {
"type": "string",
"description": "Human-readable source label."
},
"scope": {
"type": "enum",
"values": ["private", "org", "unlisted", "public"],
"default": "private"
}
},
"children": {
"mode": "mixed",
"allowed_types": ["paragraph", "text"],
"min": 0
},
"validation": [
"url must use an allowed URL scheme",
"scope must be allowed by the current document and user scope"
],
"projections": {
"relay_kit": "SourceRef",
"html": "source-ref",
"plain_text": "url source label",
"manifest": ["sources"]
},
"policy": {
"requires_review": false,
"requires_evidence": false,
"allows_agent_creation": true,
"visibility_attribute": "scope"
}
}