{
    "title": "BaseArticle",
    "allOf": [
        {
            "$ref": "#/components/schemas/BaseItem"
        },
        {
            "$ref": "#/components/schemas/TextAsset"
        },
        {
            "type": "object",
            "properties": {
                "uri": {
                    "type": "string",
                    "format": "uri"
                },
                "dek": {
                    "type": "string",
                    "nullable": true,
                    "format": "semantic HTML"
                },
                "canonical_url": {
                    "type": "string",
                    "nullable": true,
                    "format": "uri"
                },
                "vanity_url": {
                    "type": "string",
                    "nullable": true,
                    "format": "uri"
                },
                "short_title": {
                    "type": "string"
                },
                "galleries": {
                    "type": "array"
                },
                "body": {
                    "type": "string",
                    "format": "HTML"
                },
                "videos": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/Video"
                    }
                },
                "lead_media": {
                    "oneOf": [
                        {
                            "properties": {
                                "image": {
                                    "$ref": "#/components/schemas/Image"
                                }
                            },
                            "required": [
                                "image"
                            ]
                        },
                        {
                            "properties": {
                                "video": {
                                    "$ref": "#/components/schemas/Video"
                                }
                            },
                            "required": [
                                "video"
                            ]
                        },
                        {
                            "properties": {
                                "image_gallery": {
                                    "$ref": "#/components/schemas/ImageGallery"
                                }
                            },
                            "required": [
                                "image_gallery"
                            ]
                        }
                    ],
                    "type": "object"
                },
                "images": {
                    "type": "array",
                    "items": {
                        "$ref": "#/components/schemas/Image"
                    }
                },
                "contributors": {
                    "type": "array",
                    "items": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/Contributor"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "order": {
                                        "type": "integer"
                                    }
                                }
                            }
                        ]
                    }
                },
                "content_type": {
                    "type": "string",
                    "enum": [
                        "article:story",
                        "article:image_gallery",
                        "article:reference"
                    ]
                }
            },
            "required": [
                "uri"
            ]
        }
    ]
}
