-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: validate custom property name charset #27808
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
base: main
Are you sure you want to change the base?
Changes from all commits
b99f83a
d4c2013
9b7eb18
ec6582f
452bc25
9aba5b3
021647a
a68bd03
4f033ea
be23e01
1823307
28ec255
d490b3d
fa82046
3c92e1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -49,8 +49,8 @@ | |||||
| }, | ||||||
| "properties": { | ||||||
| "name": { | ||||||
| "description": "Name of the entity property. Note a property name must be unique for an entity. Property name must follow camelCase naming adopted by openMetadata - must start with lower case with no space, underscore, or dots.", | ||||||
| "$ref": "../type/basic.json#/definitions/entityName" | ||||||
| "description": "Name of the entity property. Must be unique for an entity. Allowed characters: alphanumeric, _ - . / & % # @ ! , ; = | ' + ? * ~ ` space ( ) < > [ ] { }. Must start with an alphanumeric character. Disallowed: \" : ^ $ \\.", | ||||||
|
||||||
| "description": "Name of the entity property. Must be unique for an entity. Allowed characters: alphanumeric, _ - . / & % # @ ! , ; = | ' + ? * ~ ` space ( ) < > [ ] { }. Must start with an alphanumeric character. Disallowed: \" : ^ $ \\.", | |
| "description": "Name of the entity property. Must be unique for an entity. Allowed characters: alphanumeric, _ - . / & % # @ ! , ; = | ' + ? * ~ ` space ( ) < > [ ] { }. Must start with an alphanumeric character. Disallowed: \" : ^ $ \\", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
customPropertyNameregex here allows additional characters (+ ? * ~ �backtick�) and also implicitly disallows backslash (\\), but the PR description and some generated docs elsewhere mention only four disallowed characters and omit these allowed ones. Please either align the pattern with the intended charset, or update the PR/docs to reflect the actual rule (including whether\\is intentionally disallowed).