Closed subbyte closed 1 year ago
This would be fixed by https://github.com/oasis-open/cti-stix-validator/pull/191, which switches to a more recent draft of JSON Schema.
Now that #191 is merged, would it be possible to publish a new release to pypi?
@captainGeech42 Yes, give me a few days and I will do that.
@captainGeech42 The new release is on pypi. I'd love it if you would test it to see if it fixes your problem.
@ejratl I still see 3.0.2 as the latest on pypi, is there a different package I should be looking at?
Hi @captainGeech42,
Sorry - 3.1.0 was withdrawn, but there should be a new (better) release soon.
@captainGeech42 3.1.2 is up now, please give it a whirl: https://pypi.org/project/stix2-validator/3.1.2/
On 3.1.2, I'm getting an exception for the newer format now being deprecated.
$ pip freeze | grep stix2-validator
stix2-validator==3.1.2
$ pip freeze | grep jsonschema
fastjsonschema==2.15.3
jsonschema==4.16.0
$ python script.py 2>&1 | grep stix2
../../venv/py3/lib/python3.10/site-packages/stix2validator/validator.py:11
../../venv/py3/lib/python3.10/site-packages/stix2validator/validator.py:11
/home/geech/venv/py3/lib/python3.10/site-packages/stix2validator/validator.py:11: DeprecationWarning: Accessing jsonschema.draft202012_format_checker is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.
@ejratl would it be possible to cut a new release to PyPI with this bug fix in it?
@captainGeech42 Since you are asking for it, yes, I can do that.
awesome, thank you very much!
@captainGeech42 please try 3.1.3 and let me know if it works for you
looks good now, thank you @ejratl !
I get a warning about a library update:
The function may need an update to avoid breaking down in future release.