We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54511ba commit c899f69Copy full SHA for c899f69
openlayer/schemas.py
@@ -8,9 +8,10 @@
8
9
# ---------------------------- Regular expressions --------------------------- #
10
COLUMN_NAME_REGEX = validate = ma.validate.Regexp(
11
- r"^[a-zA-Z0-9_-]+$",
+ r"^(?!openlayer)[a-zA-Z0-9_-]+$",
12
error="strings that are not alphanumeric with underscores or hyphens."
13
- + " Spaces and special characters are not allowed.",
+ + " Spaces and special characters are not allowed."
14
+ + " The string cannot start with `openlayer`.",
15
)
16
LANGUAGE_CODE_REGEX = ma.validate.Regexp(
17
r"^[a-z]{2}(-[A-Z]{2})?$",
0 commit comments