From d3210836832d50a71f126b27e932d416766a419f Mon Sep 17 00:00:00 2001 From: Denis Smet Date: Thu, 14 Mar 2024 04:30:40 +0400 Subject: [PATCH] Rearrange string properties in schema examples 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. --- README.md | 2 +- schema-examples/full.json | 2 +- schema-examples/full.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3e00e709..86635676 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/schema-examples/full.json b/schema-examples/full.json index fe841bf1..31ab7f6b 100644 --- a/schema-examples/full.json +++ b/schema-examples/full.json @@ -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, diff --git a/schema-examples/full.php b/schema-examples/full.php index f336b00f..fde385b1 100644 --- a/schema-examples/full.php +++ b/schema-examples/full.php @@ -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,