{
    "format": "csv",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/root.json",
    "type": "object",
    "title": "Gras Company Schema",
    "required": [
        "company_key",
        "company_name",
        "country_key",
        "org_country_key",
        "is_active_flag",
        "is_DSP_flag",
        "mod_stamp",
        "mod_flag"
    ],

    "properties": {
        "company_key": {
            "$id": "#/properties/company_key",
            "type": "string",
            "title": "company_key",
            "default": "",
            "examples": [
                "12"
            ],
            "pattern": "^(.*)$"
        },
        "company_name": {
            "$id": "#/properties/company_name",
            "type": "string",
            "title": "company_name",
            "default": "",
            "examples": [
                "SME Germany GmbH"
            ],
            "pattern": "^(.*)$"
        },
        "country_key": {
            "$id": "#/properties/country_key",
            "type": "string",
            "title": "country_key",
            "default": "",
            "examples": [
                "MEX"
            ],
            "pattern": "^[A-Z0-9\\s]+$"
        },
        "org_country_key": {
            "$id": "#/properties/org_country_key",
            "type": "string",
            "title": "org_country_key",
            "default": "",
            "examples": [
                "MEX"
            ],
            "pattern": "^[A-Z0-9\\s]+$"
        },
        "is_active_flag": {
            "$id": "#/properties/is_active_flag",
            "type": "string",
            "title": "is_active_flag",
            "default": "",
            "examples": [
                "Y",
                "N"
            ],
            "pattern": "^[YN]$"
        },
        "not_active_since_date": {
            "$id": "#/properties/not_active_since_date",
            "type": "string",
            "title": "not_active_since_date",
            "default": "",
            "examples": [
                "20190101"
            ],
            "pattern": "^([0-9]{8})?$"
        },
        "is_DSP_flag": {
            "$id": "#/properties/is_DSP_flag",
            "type": "string",
            "title": "is_DSP_flag",
            "default": "",
            "examples": [
                "N"
            ],
            "pattern": "^[YN]$"
        },
        "report_company_key": {
            "$id": "#/properties/report_company_key",
            "type": "string",
            "title": "report_company_key",
            "default": "",
            "examples": [
                "1234"
            ],
            "pattern": "^([\\d]*)$"
        },
        "mod_stamp": {
            "$id": "#/properties/mod_stamp",
            "type": "string",
            "title": "mod_stamp",
            "examples": [
                "1995-12-12 10:08:34.227",
                "1995-12-12 10:08:34.227"
            ],
            "pattern": "\\d{4}-\\d{2}-\\d{2}\\s\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?"
        },
        "mod_flag": {
            "$id": "#/properties/mod_flag",
            "type": "string",
            "title": "mod_flag",
            "examples": [
                "l"
            ],
            "pattern": "^[A-Za-z]{1}$"
        },
        "org_region_key": {
            "$id": "#/properties/org_region_key",
            "type": "string",
            "title": "org_region_key",
            "examples": [
                "7"
            ],
            "pattern": "^([\\d]*)$"
        },
        "is_maint_owner": {
            "$id": "#/properties/is_maint_owner",
            "type": "string",
            "title": "is_maint_owner",
            "examples": [
                "Y"
            ],
            "pattern": "^[YN]$"
        },
        "business_unit_key": {
            "$id": "#/properties/business_unit_key",
            "type": "string",
            "title": "business_unit_key",
            "default": "",
            "examples": [],
            "pattern": "^(\\d+)?$"
        }
    }
}
