{
    "$schema": "http://json-schema.org/draft-04/schema",
    "type": "object",
    "required": [
        "cnaContainer"
    ],
    "properties": {
        "cnaContainer": {
            "type": "object",
            "required": [
                "rejectedReasons"
            ],
            "properties": {
                "providerMetadata": {
                    "type": "object",
                    "properties": {
                        "orgId": {
                            "type": "string"
                        }
                    }
                },
                "rejectedReasons": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "lang": {
                                "type": "string"
                            },
                            "value": {
                                "type": "string"
                            },
                            "supportingMedia": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "title": "Media type",
                                            "minLength": 1,
                                            "maxLength": 256,
                                            "description": "RFC2046 compliant IANA Media type for eg., text/markdown, text/html.",
                                            "examples": [
                                                "text/markdown",
                                                "text/html",
                                                "image/png",
                                                "image/svg",
                                                "audio/mp3"
                                            ]
                                        },
                                        "base64": {
                                            "type": "boolean",
                                            "title": "Encoding",
                                            "description": "If true then the value field contains the media data encoded in base64. If false then the value field contains the UTF-8 media content.",
                                            "default": false
                                        },
                                        "value": {
                                            "type": "string",
                                            "description": "Supporting media content, up to 16K. If base64 is true, this field stores base64 encoded data.",
                                            "minLength": 1,
                                            "maxLength": 16384
                                        }
                                    },
                                    "required": [
                                        "type",
                                        "value"
                                    ]
                                }
                            }
                        }
                    }
                },
                "replacedBy": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        }
    }
}