diff --git a/.github/workflows/validate_json.yml b/.github/workflows/validate_json.yml index b16eea5..c259ddd 100644 --- a/.github/workflows/validate_json.yml +++ b/.github/workflows/validate_json.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - python-version: [3.6] + python-version: ["3.10"] steps: - name: Checkout repository diff --git a/src/simple_validator.py b/src/simple_validator.py index 915a4c5..6c19ce5 100755 --- a/src/simple_validator.py +++ b/src/simple_validator.py @@ -23,7 +23,7 @@ def test_jschema(validator, test_pattern): f = open(sys.argv[1], 'r') -spec = yaml.load(f.read()) +spec = yaml.safe_load(f.read()) v = Draft4Validator(spec)