Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema with regex pattern validation is accepted but fails later with "Internal Failure" #459

Closed
benkehoe opened this issue Jun 15, 2020 · 0 comments · Fixed by #675
Closed

Comments

@benkehoe
Copy link

benkehoe commented Jun 15, 2020

Opening based on aws-cloudformation/cloudformation-cli-python-plugin#99, in which @OElesin found the following pattern caused this problem:

{
    "typeName": "CD4AutoML::Workflow::Deploy",
    "properties": {
        "NotificationEmail": {
            "type": "string",
            "pattern": "^[\\x20-\\x45]?[\\w-\\+]+(\\.[\\w]+)*@[\\w-]+(\\.[\\w]+)*(\\.[a-z]{2,})$"
        },
        "WorkflowName": {
            "type": "string",
        }
    },
    "additionalProperties": false,
    "required": [
        "NotificationEmail",
        "WorkflowName"
    ],
    "primaryIdentifier": [
        "/properties/WorkflowName"
    ],
    "handlers": {
        "create": {
            "permissions": [""]
        },
        "read": {
            "permissions": [""]
        },
        "update": {
            "permissions": [""]
        },
        "delete": {
            "permissions": [""]
        },
        "list": {
            "permissions": [""]
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants