{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://www.52north.org/schema/json/CodeType#",
    "oneOf": [
        {
            "type": "string"
        },
        {
            "type": "object",
            "required": [
                "value"
            ],
            "properties": {
                "value": {
                    "type": "string"
                },
                "codespace": {
                    "type": "string",
                    "default": "http://www.opengis.net/def/nil/OGC/0/unknown"
                }
            }
        }
    ]
}