{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://schema.manifest.build/definitions/policies/policy-schema.json",
    "title": "Policy Schema",
    "description": "The policies of the entity. Doc: https://manifest.build/docs/policies",
    "type": "object",
    "properties": {
        "access": {
            "type": "string",
            "enum": [
                "public",
                "restricted",
                "forbidden",
                "admin",
                "🌐",
                "🚫",
                "🔒",
                "️👨🏻‍💻"
            ]
        },
        "allow": {
            "oneOf": [
                {
                    "type": "string"
                },
                {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            ]
        }
    },
    "required": ["access"],
    "additionalProperties": false
}
