-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix validation of custom local schemas #235
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #235 +/- ##
==========================================
- Coverage 94.47% 94.36% -0.12%
==========================================
Files 66 66
Lines 6174 6211 +37
==========================================
+ Hits 5833 5861 +28
- Misses 341 350 +9 ☔ View full report in Codecov by Sentry. |
Added a new test exercising this use case |
Thanks, this is great! I realized there is another use case the previous jsonschema version supported. Consider the following: test_schemas/tool.json: {
"allOf": [
{
"properties": {
"foo_value": {
"type": "string"
}
},
"required": ["foo_value"]
},
{
"$ref": "bar.json"
}
]
} test_schemas/bar.json: {
"properties": {
"bar_value": {
"type": "string"
}
} test/test_tool.json: {
"type": "tool",
"spec_version": "2.1",
"id": "tool--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",
"created_by_ref": "identity--f431f809-377b-45e0-aa1c-6a4751cae5ff",
"created": "2016-04-06T20:03:48.000Z",
"modified": "2016-04-06T20:03:48.000Z",
"tool_types": [ "remote-access"],
"name": "VNC",
"foo_value": "bizz",
"bar_value": "buzz"
}
|
Looking into this (but this should have been yet another test). |
7cebb1e
to
5a3be9a
Compare
Found a workaround but Windows test fail now. |
Uh, weird.
|
Looks good to me! (user error on my part confused me into thinking it didn't work) Thank you very much!! |
Cool :) |
Fix issue #234 (as mentioned by @clenk here #228)
CC @adulau @clenk @ejratl @rpiazza