-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use importlib.import_module instead of __import__. Add error logic wh…
…en encountering invalid package/module when loading Pydantic models from an external package. Minor changes to address feedback.
- Loading branch information
1 parent
d2776ec
commit e650f44
Showing
9 changed files
with
83 additions
and
49 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
1 change: 1 addition & 0 deletions
1
tests/fixtures/test_validators_pydantic/inventory/host_vars/az_phx_pe01/dns.yml
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,4 @@ | ||
--- | ||
# jsonschema: pydantic/Dns | ||
dns_servers: | ||
- "8.8.8.8" | ||
|
1 change: 1 addition & 0 deletions
1
tests/fixtures/test_validators_pydantic/inventory/host_vars/co_den_p01/dns.yml
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,4 @@ | ||
--- | ||
# jsonschema: pydantic/Dns | ||
dns_servers: | ||
- "8.8.8.8" | ||
|
1 change: 1 addition & 0 deletions
1
tests/fixtures/test_validators_pydantic/inventory_fail/host_vars/az_phx_pe01/dns.yml
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,4 @@ | ||
--- | ||
# jsonschema: pydantic/Dns | ||
dns_servers: | ||
- "8.8.8.8" | ||
|
1 change: 1 addition & 0 deletions
1
tests/fixtures/test_validators_pydantic/inventory_fail/host_vars/co_den_p01/dns.yml
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,4 @@ | ||
--- | ||
# jsonschema: pydantic/Dns | ||
dns_servers: | ||
- "8.8.8.8" | ||
|
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