Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.5 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://github.com/PostHog/posthog/blob/master/packages/owners-yaml/resolution.schema.json",
    "title": "owners.yaml resolver response",
    "description": "The JSON object a resolver writes for a resolution request, keyed by normalized path. See SPEC.md section 7.",
    "type": "object",
    "additionalProperties": {
        "type": "object",
        "required": ["owners", "status", "slack", "source"],
        "properties": {
            "owners": {
                "type": "array",
                "items": { "type": "string", "minLength": 1 },
                "description": "The resolved owners, primary owner first. Empty when the path is unowned or unowned by design."
            },
            "status": { "enum": ["active", "deprecated", "generated", "vendored"] },
            "slack": {
                "type": ["string", "null"],
                "pattern": "^#",
                "description": "The channel for the requested purpose."
            },
            "source": {
                "type": ["string", "null"],
                "minLength": 1,
                "description": "The repository-relative path of the file that set the owners."
            },
            "additions": {
                "type": "array",
                "items": { "type": "string", "minLength": 1 },
                "description": "The owners of additions at the path, separate from its owners. A resolver that predates the member leaves it out, and a consumer treats that as an empty array."
            },
            "added": {
                "type": ["object", "null"],
                "required": ["path", "additions"],
                "additionalProperties": false,
                "properties": {
                    "path": { "type": "string", "minLength": 1 },
                    "additions": { "type": "array", "items": { "type": "string", "minLength": 1 } }
                },
                "description": "When the resolver reads a tree that does not hold the path: the part of the path nearest the root that the tree lacks, and the owners of additions at that part. Null when the tree holds the path or the resolver reads no tree. A consumer treats a missing member as null."
            },
            "sensitive": {
                "type": "boolean",
                "description": "Whether the path is sensitive (SPEC section 3.7). A resolver that predates the member leaves it out, and a consumer treats that as false."
            }
        }
    }
}