-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass of validation rules for FOCUS 1.0
Signed-off-by: Joshua Kwan <[email protected]>
- Loading branch information
Showing
74 changed files
with
456 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ChargeDescription_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ChargeDescription | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ChargeDescription_NotNull.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ChargeDescription | ||
check: | ||
allow_nulls: false |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/ChargeDescription_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: ChargeDescription | ||
check: column_required |
6 changes: 6 additions & 0 deletions
6
focus_validator/rules/base_rule_definitions/ChargeFrequency_Enum.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
column_id: ChargeFrequency | ||
check: | ||
value_in: | ||
- "One-Time" | ||
- "Recurring" | ||
- "Usage-Based" |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ChargeFrequency_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ChargeFrequency | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ChargeFrequency_NotNull.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ChargeFrequency | ||
check: | ||
allow_nulls: false |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/ChargeFrequency_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: ChargeFrequency | ||
check: column_required |
13 changes: 13 additions & 0 deletions
13
focus_validator/rules/base_rule_definitions/ChargeSubcategory_Enum.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
column_id: ChargeSubcategory | ||
check: | ||
value_in: | ||
# Allowed when ChargeType=Usage | ||
- "On-Demand" | ||
- "Used Commitment" | ||
- "Unused Commitment" | ||
- "Usage" | ||
# Allowed when ChargeType=Adjustment | ||
- "Refund" | ||
- "Credit" | ||
- "Rounding Error" | ||
- "General Adjustment" |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ChargeSubcategory_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ChargeSubcategory | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ChargeSubcategory_NotNull.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ChargeSubcategory | ||
check: | ||
allow_nulls: false |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/ChargeSubcategory_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: ChargeSubcategory | ||
check: column_required |
5 changes: 5 additions & 0 deletions
5
focus_validator/rules/base_rule_definitions/CommitmentDiscountCategory_Enum.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
column_id: CommitmentDiscountCategory | ||
check: | ||
value_in: | ||
- "Spend" | ||
- "Usage" |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountCategory_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountCategory | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountCategory_NotNull.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountCategory | ||
check: | ||
allow_nulls: false |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountCategory_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountCategory | ||
check: | ||
column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountId_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountId | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountId_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountId | ||
check: | ||
allow_nulls: true |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountId_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountId | ||
check: | ||
column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountName_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountName | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountName_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountName | ||
check: | ||
allow_nulls: true |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/CommitmentDiscountName_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: CommitmentDiscountName | ||
check: column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountType_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountType | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/CommitmentDiscountType_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: CommitmentDiscountType | ||
check: | ||
allow_nulls: true |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/EffectiveCost_IsDecimal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: EffectiveCost | ||
check: | ||
data_type: decimal |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/EffectiveCost_NotNull.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: EffectiveCost | ||
check: | ||
allow_nulls: false |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/EffectiveCost_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: EffectiveCost | ||
check: | ||
column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ListCost_IsDecimal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ListCost | ||
check: | ||
data_type: decimal |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ListCost_NotNull.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ListCost | ||
check: | ||
allow_nulls: false |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ListCost_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ListCost | ||
check: | ||
column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ListUnitPrice_IsDecimal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ListUnitPrice | ||
check: | ||
data_type: decimal |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ListUnitPrice_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ListUnitPrice | ||
check: | ||
allow_nulls: true |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ListUnitPrice_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ListUnitPrice | ||
check: | ||
column_required |
7 changes: 7 additions & 0 deletions
7
focus_validator/rules/base_rule_definitions/PricingCategory_Enum.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
column_id: PricingCategory | ||
check: | ||
value_in: | ||
- "On-Demand" | ||
- "Dynamic" | ||
- "Commitment-Based" | ||
- "Other" |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/PricingCategory_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: PricingCategory | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/PricingCategory_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: PricingCategory | ||
check: | ||
allow_nulls: true |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/PricingCategory_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: PricingCategory | ||
check: column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/PricingQuantity_IsDecimal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: PricingQuantity | ||
check: | ||
data_type: decimal |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/PricingQuantity_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: PricingQuantity | ||
check: | ||
allow_nulls: true |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/PricingQuantity_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: PricingQuantity | ||
check: | ||
column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/PricingUnit_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: PricingUnit | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/PricingUnit_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: PricingUnit | ||
check: | ||
allow_nulls: true |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/PricingUnit_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: PricingUnit | ||
check: column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ResourceType_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ResourceType | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/ResourceType_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: ResourceType | ||
check: | ||
allow_nulls: true |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/ResourceType_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: ResourceType | ||
check: column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/SkuId_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: SkuId | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/SkuId_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: SkuId | ||
check: | ||
allow_nulls: true |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/SkuId_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: SkuId | ||
check: column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/SkuPriceId_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: SkuPriceId | ||
check: | ||
data_type: string |
9 changes: 9 additions & 0 deletions
9
focus_validator/rules/base_rule_definitions/SkuPriceId_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
column_id: SkuPriceId | ||
check_friendly_name: SkuPriceId must be set for certain values of ChargeType | ||
check: | ||
sql_query: | | ||
SELECT CASE | ||
WHEN ChargeType IN ('Purchase', 'Usage', 'Refund') AND SkuPriceId IS NULL THEN FALSE | ||
ELSE TRUE | ||
END AS check_output | ||
FROM df; |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/SkuPriceId_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: SkuPriceId | ||
check: column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/SubAccountId_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: SubAccountId | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/SubAccountId_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: SubAccountId | ||
check: | ||
allow_nulls: true |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/SubAccountId_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: SubAccountId | ||
check: column_required |
3 changes: 1 addition & 2 deletions
3
focus_validator/rules/base_rule_definitions/SubAccountName_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
column_id: SubAccountName | ||
check: | ||
column_required | ||
check: column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/Tags_IsJSONObject.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: Tags | ||
check: | ||
data_type: stringified-json-object |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/Tags_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: Tags | ||
check: | ||
allow_nulls: true |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/Tags_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: Tags | ||
check: | ||
column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/UsageQuantity_IsDecimal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: UsageQuantity | ||
check: | ||
data_type: decimal |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/UsageQuantity_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: UsageQuantity | ||
check: | ||
allow_nulls: true |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/UsageQuantity_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: UsageQuantity | ||
check: | ||
column_required |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/UsageUnit_IsString.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: UsageUnit | ||
check: | ||
data_type: string |
3 changes: 3 additions & 0 deletions
3
focus_validator/rules/base_rule_definitions/UsageUnit_Nullable.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
column_id: UsageUnit | ||
check: | ||
allow_nulls: true |
2 changes: 2 additions & 0 deletions
2
focus_validator/rules/base_rule_definitions/UsageUnit_Required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
column_id: UsageUnit | ||
check: column_required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.