Skip to content

Commit

Permalink
Fixes #1664: allow ":" and "/" in Document property names
Browse files Browse the repository at this point in the history
  • Loading branch information
tatu-at-datastax committed Nov 26, 2024
1 parent dc6bd25 commit 24cabc2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ interface Fields {
// Current definition of valid JSON API names: note that this only validates
// characters, not length limits (nor empty nor "too long" allowed but validated
// separately)
Pattern VALID_NAME_PATTERN = Pattern.compile("[a-zA-Z0-9_\\-]*");
Pattern VALID_NAME_PATTERN = Pattern.compile("[a-zA-Z0-9_\\-:/]*");

/** Field name pattern in sort and filter clause. */
Pattern VALID_PATH_PATTERN = Pattern.compile("[a-zA-Z0-9_.\\-]*");
Pattern VALID_PATH_PATTERN = Pattern.compile("[a-zA-Z0-9_\\-:/.]*");
}

interface KeyTypeId {
Expand Down

0 comments on commit 24cabc2

Please sign in to comment.