Skip to content

Only validate unevaluated properties/items on applicable types#949

Merged
Julian merged 3 commits intopython-jsonschema:mainfrom
EpicWink:fix-unevaluated
May 20, 2022
Merged

Only validate unevaluated properties/items on applicable types#949
Julian merged 3 commits intopython-jsonschema:mainfrom
EpicWink:fix-unevaluated

Conversation

@EpicWink
Copy link
Contributor

Fixes attribute error when trying to validate unevaluatedProperties and unevaluatedItems on objects which aren't a dict or list respectively.

@Julian
Copy link
Member

Julian commented May 18, 2022

Thanks! The tests for this would actually belong first as a pull request to the official test suite. Could you perhaps give that a shot?

@Julian Julian added Needs Test Upstream Issues that need to have a test added to https://github.com/json-schema-org/JSON-Schema-Test-Suite Waiting for Author A PR waiting for author changes or issue waiting on reporter feedback labels May 18, 2022
@EpicWink
Copy link
Contributor Author

The tests for this would actually belong first as a pull request to the official test suite. Could you perhaps give that a shot?

Done, see json-schema-org/JSON-Schema-Test-Suite#550

@Julian
Copy link
Member

Julian commented May 18, 2022

Thanks! I've pulled those in here (and skipped them on master -- so you should be able to unskip them here in a commit and see these pass.)

Appreciated.

@EpicWink
Copy link
Contributor Author

@Julian that's done. Feel free to review and merge

@Julian
Copy link
Member

Julian commented May 20, 2022

Great! Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Test Upstream Issues that need to have a test added to https://github.com/json-schema-org/JSON-Schema-Test-Suite Waiting for Author A PR waiting for author changes or issue waiting on reporter feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants