-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a validator for the manifest version
- Loading branch information
1 parent
2846ea4
commit 333b44f
Showing
3 changed files
with
16 additions
and
6 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
9 changes: 8 additions & 1 deletion
9
datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/__init__.py
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,8 +1,15 @@ | ||
# (C) Datadog, Inc. 2021-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
from .common.validator import VersionValidator | ||
from .constants import V2_STRING | ||
from .v2.validator import get_v2_validators | ||
|
||
|
||
def get_all_validators(ctx, version_string, is_extras=False, is_marketplace=False): | ||
return get_v2_validators(ctx, is_extras, is_marketplace) | ||
validators = [VersionValidator()] | ||
|
||
if version_string == V2_STRING: | ||
validators.extend(get_v2_validators(ctx, is_extras, is_marketplace)) | ||
|
||
return validators |
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