Skip to content

Commit

Permalink
Rearrange string properties in schema examples
Browse files Browse the repository at this point in the history
The order of "str_ends_with" and "str_starts_with" properties in both full.json and full.php has been swapped for consistency and clarity. The README.md documentation has been updated to reflect these modifications in the schema examples.
  • Loading branch information
Denis Smet committed Mar 14, 2024
1 parent a91cc5b commit d321083
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ columns:
max_word_count: 5 # Integer only. Max count of words in the string Example: "Hello World! 123" - 2 words only (123 is not a word)
at_least_contains: [ a, b ] # At least one of the string must be in the CSV value. Case-sensitive.
all_must_contain: [ a, b, c ] # All the strings must be part of a CSV value. Case-sensitive.
str_ends_with: " suffix" # Case-sensitive. Example: "Hello World suffix"
str_starts_with: "prefix " # Case-sensitive. Example: "prefix Hello World"
str_ends_with: " suffix" # Case-sensitive. Example: "Hello World suffix"

# Decimal and integer numbers
min: 10 # Can be integer or float, negative and positive
Expand Down
2 changes: 1 addition & 1 deletion schema-examples/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"max_word_count" : 5,
"at_least_contains" : ["a", "b"],
"all_must_contain" : ["a", "b", "c"],
"str_ends_with" : " suffix",
"str_starts_with" : "prefix ",
"str_ends_with" : " suffix",
"min" : 10,
"max" : 100.5,
"precision" : 3,
Expand Down
2 changes: 1 addition & 1 deletion schema-examples/full.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
'max_word_count' => 5,
'at_least_contains' => ['a', 'b'],
'all_must_contain' => ['a', 'b', 'c'],
'str_ends_with' => ' suffix',
'str_starts_with' => 'prefix ',
'str_ends_with' => ' suffix',
'min' => 10,
'max' => 100.5,
'precision' => 3,
Expand Down

0 comments on commit d321083

Please sign in to comment.