From f63e700e77ee3e7f198c2d34197b4e1f29fd69e4 Mon Sep 17 00:00:00 2001 From: George Dietrich Date: Sat, 5 Dec 2020 11:07:02 -0500 Subject: [PATCH] Bump crystal versions (#9) * Bump dep versions * Fix/update broken links in constraint docs --- .github/workflows/ci.yml | 2 +- shard.yml | 6 +++--- src/constraints/all.cr | 4 ++-- src/constraints/at_least_one_of.cr | 4 ++-- src/constraints/blank.cr | 4 ++-- src/constraints/callback.cr | 4 ++-- src/constraints/choice.cr | 4 ++-- src/constraints/compound.cr | 4 ++-- src/constraints/email.cr | 4 ++-- src/constraints/equal_to.cr | 4 ++-- src/constraints/greater_than.cr | 4 ++-- src/constraints/greater_than_or_equal.cr | 4 ++-- src/constraints/ip.cr | 4 ++-- src/constraints/is_false.cr | 4 ++-- src/constraints/is_nil.cr | 4 ++-- src/constraints/is_true.cr | 4 ++-- src/constraints/isbn.cr | 4 ++-- src/constraints/isin.cr | 4 ++-- src/constraints/issn.cr | 4 ++-- src/constraints/less_than.cr | 4 ++-- src/constraints/less_than_or_equal.cr | 4 ++-- src/constraints/luhn.cr | 4 ++-- src/constraints/negative.cr | 4 ++-- src/constraints/negative_or_zero.cr | 2 +- src/constraints/not_blank.cr | 4 ++-- src/constraints/not_equal_to.cr | 4 ++-- src/constraints/not_nil.cr | 4 ++-- src/constraints/positive.cr | 4 ++-- src/constraints/positive_or_zero.cr | 4 ++-- src/constraints/range.cr | 4 ++-- src/constraints/regex.cr | 4 ++-- src/constraints/sequentially.cr | 4 ++-- src/constraints/size.cr | 4 ++-- src/constraints/unique.cr | 4 ++-- src/constraints/url.cr | 4 ++-- src/constraints/valid.cr | 4 ++-- src/metadata/metadata.cr | 2 +- 37 files changed, 72 insertions(+), 72 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8d3dfc..34c5a4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,6 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install Dependencies - run: shards install --ignore-crystal-version + run: shards install - name: Specs run: crystal spec --order random --error-on-warnings diff --git a/shard.yml b/shard.yml index 85b0621..05de2c7 100644 --- a/shard.yml +++ b/shard.yml @@ -1,8 +1,8 @@ name: athena-validator -version: 0.1.2 +version: 0.1.3 -crystal: 0.35.0 +crystal: '>= 0.35.0' license: MIT @@ -22,4 +22,4 @@ development_dependencies: version: ~> 0.13.0 athena-spec: github: athena-framework/spec - version: ~> 0.2.0 + version: ~> 0.2.3 diff --git a/src/constraints/all.cr b/src/constraints/all.cr index 9d4768e..5677c62 100644 --- a/src/constraints/all.cr +++ b/src/constraints/all.cr @@ -20,7 +20,7 @@ require "./composite" # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -28,7 +28,7 @@ require "./composite" # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. # # ## Usage # diff --git a/src/constraints/at_least_one_of.cr b/src/constraints/at_least_one_of.cr index f8fed79..230a0e4 100644 --- a/src/constraints/at_least_one_of.cr +++ b/src/constraints/at_least_one_of.cr @@ -45,7 +45,7 @@ require "./composite" # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -53,7 +53,7 @@ require "./composite" # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. # # ## Usage # diff --git a/src/constraints/blank.cr b/src/constraints/blank.cr index e89c624..4046d01 100644 --- a/src/constraints/blank.cr +++ b/src/constraints/blank.cr @@ -20,7 +20,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -28,7 +28,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Blank < Athena::Validator::Constraint NOT_BLANK_ERROR = "c815f901-c581-4fb7-a85d-b8c5bc757959" diff --git a/src/constraints/callback.cr b/src/constraints/callback.cr index e2bdebf..931fa6a 100644 --- a/src/constraints/callback.cr +++ b/src/constraints/callback.cr @@ -32,7 +32,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -40,7 +40,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. # # ## Usage # diff --git a/src/constraints/choice.cr b/src/constraints/choice.cr index 422b738..d37cf72 100644 --- a/src/constraints/choice.cr +++ b/src/constraints/choice.cr @@ -87,7 +87,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -95,7 +95,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Choice < Athena::Validator::Constraint NO_SUCH_CHOICE_ERROR = "c7398ea5-e787-4ee9-9fca-5f2c130614d6" TOO_FEW_ERROR = "3573357d-c9a8-4633-a742-c001086fd5aa" diff --git a/src/constraints/compound.cr b/src/constraints/compound.cr index c394df8..8a2a2da 100644 --- a/src/constraints/compound.cr +++ b/src/constraints/compound.cr @@ -12,7 +12,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -20,7 +20,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. # # ## Usage # diff --git a/src/constraints/email.cr b/src/constraints/email.cr index d1559a0..06d6f12 100644 --- a/src/constraints/email.cr +++ b/src/constraints/email.cr @@ -30,7 +30,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -38,7 +38,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Email < Athena::Validator::Constraint # Determines _how_ the email address should be validated. enum Mode diff --git a/src/constraints/equal_to.cr b/src/constraints/equal_to.cr index 0c49b60..e0eacab 100644 --- a/src/constraints/equal_to.cr +++ b/src/constraints/equal_to.cr @@ -28,7 +28,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -36,7 +36,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::EqualTo(ValueType) < Athena::Validator::Constraint include Athena::Validator::Constraints::AbstractComparison(ValueType) diff --git a/src/constraints/greater_than.cr b/src/constraints/greater_than.cr index 6ea132d..a5fcf45 100644 --- a/src/constraints/greater_than.cr +++ b/src/constraints/greater_than.cr @@ -30,7 +30,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -38,7 +38,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::GreaterThan(ValueType) < Athena::Validator::Constraint include Athena::Validator::Constraints::AbstractComparison(ValueType) diff --git a/src/constraints/greater_than_or_equal.cr b/src/constraints/greater_than_or_equal.cr index 7d6f396..b1a1174 100644 --- a/src/constraints/greater_than_or_equal.cr +++ b/src/constraints/greater_than_or_equal.cr @@ -30,7 +30,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -38,7 +38,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::GreaterThanOrEqual(ValueType) < Athena::Validator::Constraint include Athena::Validator::Constraints::AbstractComparison(ValueType) diff --git a/src/constraints/ip.cr b/src/constraints/ip.cr index ea77e01..9b6d21b 100644 --- a/src/constraints/ip.cr +++ b/src/constraints/ip.cr @@ -31,7 +31,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -39,7 +39,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::IP < Athena::Validator::Constraint # Determines _how_ the IP address should be validated. enum Version diff --git a/src/constraints/is_false.cr b/src/constraints/is_false.cr index 24bdf38..3fbd98f 100644 --- a/src/constraints/is_false.cr +++ b/src/constraints/is_false.cr @@ -20,7 +20,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -28,7 +28,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::IsFalse < Athena::Validator::Constraint NOT_FALSE_ERROR = "55c076a0-dbaf-453c-90cf-b94664276dbc" diff --git a/src/constraints/is_nil.cr b/src/constraints/is_nil.cr index 9a01809..5ac2026 100644 --- a/src/constraints/is_nil.cr +++ b/src/constraints/is_nil.cr @@ -20,7 +20,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -28,7 +28,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::IsNil < Athena::Validator::Constraint NOT_NIL_ERROR = "2c88e3c7-9275-4b9b-81b4-48c6c44b1804" diff --git a/src/constraints/is_true.cr b/src/constraints/is_true.cr index 4919288..7dd8a72 100644 --- a/src/constraints/is_true.cr +++ b/src/constraints/is_true.cr @@ -20,7 +20,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -28,7 +28,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::IsTrue < Athena::Validator::Constraint NOT_TRUE_ERROR = "beabd93e-3673-4dfc-8796-01bd1504dd19" diff --git a/src/constraints/isbn.cr b/src/constraints/isbn.cr index f516772..800f461 100644 --- a/src/constraints/isbn.cr +++ b/src/constraints/isbn.cr @@ -67,7 +67,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -75,7 +75,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::ISBN < Athena::Validator::Constraint enum Type ISBN10 diff --git a/src/constraints/isin.cr b/src/constraints/isin.cr index 4b43b4a..923cd58 100644 --- a/src/constraints/isin.cr +++ b/src/constraints/isin.cr @@ -24,7 +24,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -32,7 +32,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::ISIN < Athena::Validator::Constraint INVALID_LENGTH_ERROR = "1d1c3fbe-5b6f-42be-afa5-6840655865da" INVALID_PATTERN_ERROR = "0b6ba8c4-b6aa-44dc-afac-a6f7a9a2556d" diff --git a/src/constraints/issn.cr b/src/constraints/issn.cr index 2f0fbfa..f2b690c 100644 --- a/src/constraints/issn.cr +++ b/src/constraints/issn.cr @@ -38,7 +38,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -46,7 +46,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::ISSN < Athena::Validator::Constraint TOO_SHORT_ERROR = "85c5d3aa-fd0a-4cd0-8cf7-e014e6379d59" TOO_LONG_ERROR = "fab8e3ea-2f77-4da7-b40f-d9b24ff8c0cc" diff --git a/src/constraints/less_than.cr b/src/constraints/less_than.cr index 266f65a..3486854 100644 --- a/src/constraints/less_than.cr +++ b/src/constraints/less_than.cr @@ -30,7 +30,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -38,7 +38,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::LessThan(ValueType) < Athena::Validator::Constraint include Athena::Validator::Constraints::AbstractComparison(ValueType) diff --git a/src/constraints/less_than_or_equal.cr b/src/constraints/less_than_or_equal.cr index f6bdad9..588d76a 100644 --- a/src/constraints/less_than_or_equal.cr +++ b/src/constraints/less_than_or_equal.cr @@ -30,7 +30,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -38,7 +38,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::LessThanOrEqual(ValueType) < Athena::Validator::Constraint include Athena::Validator::Constraints::AbstractComparison(ValueType) diff --git a/src/constraints/luhn.cr b/src/constraints/luhn.cr index 6d8f6de..39afbc3 100644 --- a/src/constraints/luhn.cr +++ b/src/constraints/luhn.cr @@ -24,7 +24,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -32,7 +32,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Luhn < Athena::Validator::Constraint INVALID_CHARACTERS_ERROR = "c42b8d36-d9e9-4f5f-aad6-5190e27a1102" CHECKSUM_FAILED_ERROR = "a4f089dd-fd63-4d50-ac30-34ed2a8dc9dd" diff --git a/src/constraints/negative.cr b/src/constraints/negative.cr index 6abc068..f4aa8a7 100644 --- a/src/constraints/negative.cr +++ b/src/constraints/negative.cr @@ -23,7 +23,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -31,7 +31,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Negative < Athena::Validator::Constraints::LessThan(Int32) def initialize( message : String = "This value should be negative.", diff --git a/src/constraints/negative_or_zero.cr b/src/constraints/negative_or_zero.cr index b69d93a..3016409 100644 --- a/src/constraints/negative_or_zero.cr +++ b/src/constraints/negative_or_zero.cr @@ -23,7 +23,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload diff --git a/src/constraints/not_blank.cr b/src/constraints/not_blank.cr index e11faa0..3161a6d 100644 --- a/src/constraints/not_blank.cr +++ b/src/constraints/not_blank.cr @@ -26,7 +26,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -34,7 +34,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::NotBlank < Athena::Validator::Constraint IS_BLANK_ERROR = "0d0c3254-3642-4cb0-9882-46ee5918e6e3" diff --git a/src/constraints/not_equal_to.cr b/src/constraints/not_equal_to.cr index 7cf7829..22af07f 100644 --- a/src/constraints/not_equal_to.cr +++ b/src/constraints/not_equal_to.cr @@ -28,7 +28,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -36,7 +36,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::NotEqualTo(ValueType) < Athena::Validator::Constraint include Athena::Validator::Constraints::AbstractComparison(ValueType) diff --git a/src/constraints/not_nil.cr b/src/constraints/not_nil.cr index b4b7b47..d2f180d 100644 --- a/src/constraints/not_nil.cr +++ b/src/constraints/not_nil.cr @@ -23,7 +23,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -31,7 +31,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::NotNil < Athena::Validator::Constraint IS_NIL_ERROR = "c7e77b14-744e-44c0-aa7e-391c69cc335c" diff --git a/src/constraints/positive.cr b/src/constraints/positive.cr index 2e00fda..5018e26 100644 --- a/src/constraints/positive.cr +++ b/src/constraints/positive.cr @@ -23,7 +23,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -31,7 +31,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Positive < Athena::Validator::Constraints::GreaterThan(Int32) def initialize( message : String = "This value should be positive.", diff --git a/src/constraints/positive_or_zero.cr b/src/constraints/positive_or_zero.cr index 33e0f03..17a4172 100644 --- a/src/constraints/positive_or_zero.cr +++ b/src/constraints/positive_or_zero.cr @@ -23,7 +23,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -31,7 +31,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::PositiveOrZero < Athena::Validator::Constraints::GreaterThanOrEqual(Int32) def initialize( message : String = "This value should be positive or zero.", diff --git a/src/constraints/range.cr b/src/constraints/range.cr index a1875fe..60b551f 100644 --- a/src/constraints/range.cr +++ b/src/constraints/range.cr @@ -59,7 +59,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -67,7 +67,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Range < Athena::Validator::Constraint NOT_IN_RANGE_ERROR = "7e62386d-30ae-4e7c-918f-1b7e571c6d69" TOO_HIGH_ERROR = "5d9aed01-ac49-4d8e-9c16-e4aab74ea774" diff --git a/src/constraints/regex.cr b/src/constraints/regex.cr index 2d4096b..04da473 100644 --- a/src/constraints/regex.cr +++ b/src/constraints/regex.cr @@ -39,7 +39,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -47,7 +47,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Regex < Athena::Validator::Constraint REGEX_FAILED_ERROR = "108987a0-2d81-44a0-b8d4-1c7ab8815343" diff --git a/src/constraints/sequentially.cr b/src/constraints/sequentially.cr index ed46b92..113ebf3 100644 --- a/src/constraints/sequentially.cr +++ b/src/constraints/sequentially.cr @@ -18,7 +18,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -26,7 +26,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. # # ## Usage # diff --git a/src/constraints/size.cr b/src/constraints/size.cr index be33a88..69cd23f 100644 --- a/src/constraints/size.cr +++ b/src/constraints/size.cr @@ -64,7 +64,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -72,7 +72,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Size < Athena::Validator::Constraint TOO_SHORT_ERROR = "8ba31c71-1b37-4b76-8bc9-66896589b01f" TOO_LONG_ERROR = "a1fa7a63-ea3b-46a0-adcc-5e1bcc26f73a" diff --git a/src/constraints/unique.cr b/src/constraints/unique.cr index 47ff9a1..9bbe22f 100644 --- a/src/constraints/unique.cr +++ b/src/constraints/unique.cr @@ -20,7 +20,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -28,7 +28,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::Unique < Athena::Validator::Constraint IS_NOT_UNIQUE_ERROR = "fd1f83d6-94b5-44bc-b39d-b1ff367ebfb8" diff --git a/src/constraints/url.cr b/src/constraints/url.cr index 63a4533..cd626bf 100644 --- a/src/constraints/url.cr +++ b/src/constraints/url.cr @@ -36,7 +36,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -44,7 +44,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. class Athena::Validator::Constraints::URL < Athena::Validator::Constraint INVALID_URL_ERROR = "e87ceba6-a896-4906-9957-b102045272ee" diff --git a/src/constraints/valid.cr b/src/constraints/valid.cr index b5040f7..c015089 100644 --- a/src/constraints/valid.cr +++ b/src/constraints/valid.cr @@ -10,7 +10,7 @@ # # **Type:** `Array(String) | String | Nil` **Default:** `nil` # -# The `AVD:Constraint@validation-groups` this constraint belongs to. +# The [validation groups](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#validation-groups) this constraint belongs to. # `AVD::Constraint::DEFAULT_GROUP` is assumed if `nil`. # # #### payload @@ -18,7 +18,7 @@ # **Type:** `Hash(String, String)?` **Default:** `nil` # # Any arbitrary domain-specific data that should be stored with this constraint. -# The `AVD::Constraint@payload` is not used by `Athena::Validator`, but its processing is completely up to you. +# The [payload](https://athena-framework.github.io/validator/Athena/Validator/Constraint.html#payload) is not used by `Athena::Validator`, but its processing is completely up to you. # # ## Usage # diff --git a/src/metadata/metadata.cr b/src/metadata/metadata.cr index 81b1702..1c88af5 100644 --- a/src/metadata/metadata.cr +++ b/src/metadata/metadata.cr @@ -1,5 +1,5 @@ # :nodoc: -struct Athena::Validator::Metadata::Metadata +class Athena::Validator::Metadata::Metadata include Athena::Validator::Metadata::GenericMetadata def class_name : Nil