{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "http://example.com/example.json",
    "type": "object",
    "title": "authentik Blueprint schema",
    "default": {},
    "required": [
        "version",
        "entries"
    ],
    "properties": {
        "version": {
            "$id": "#/properties/version",
            "type": "integer",
            "title": "Blueprint version",
            "default": 1
        },
        "metadata": {
            "$id": "#/properties/metadata",
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                },
                "labels": {
                    "type": "object"
                }
            }
        },
        "context": {
            "$id": "#/properties/context",
            "type": "object",
            "additionalProperties": true
        },
        "entries": {
            "type": "array",
            "items": {
                "$id": "#entry",
                "type": "object",
                "required": [
                    "model",
                    "identifiers"
                ],
                "properties": {
                    "model": {
                        "type": "string",
                        "enum": [
                            "placeholder"
                        ]
                    },
                    "id": {
                        "type": "string"
                    },
                    "attrs": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string",
                                "description": "Commonly available field, may not exist on all models"
                            }
                        },
                        "default": {},
                        "additionalProperties": true
                    },
                    "identifiers": {
                        "type": "object",
                        "properties": {
                            "pk": {
                                "description": "Commonly available field, may not exist on all models",
                                "anyOf": [
                                    {
                                        "type": "number"
                                    },
                                    {
                                        "type": "string",
                                        "format": "uuid"
                                    }
                                ]
                            }
                        },
                        "additionalProperties": true
                    }
                }
            }
        }
    }
}
