json-schema-utils 0.9.10__tar.gz → 0.9.10.dev5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {json_schema_utils-0.9.10/json_schema_utils.egg-info → json_schema_utils-0.9.10.dev5}/PKG-INFO +1 -1
  2. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5/json_schema_utils.egg-info}/PKG-INFO +1 -1
  3. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/simplify.py +5 -1
  4. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/.gitignore +0 -0
  5. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/LICENSE +0 -0
  6. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/MANIFEST.in +0 -0
  7. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/README.md +0 -0
  8. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/json_schema_utils.egg-info/SOURCES.txt +0 -0
  9. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/json_schema_utils.egg-info/dependency_links.txt +0 -0
  10. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/json_schema_utils.egg-info/entry_points.txt +0 -0
  11. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/json_schema_utils.egg-info/not-zip-safe +0 -0
  12. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/json_schema_utils.egg-info/requires.txt +0 -0
  13. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/json_schema_utils.egg-info/top_level.txt +0 -0
  14. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/VERSION +0 -0
  15. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/__init__.py +0 -0
  16. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/convert.py +0 -0
  17. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/inline.py +0 -0
  18. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/recurse.py +0 -0
  19. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/resolver.py +0 -0
  20. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/restruct.py +0 -0
  21. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/schemas.py +0 -0
  22. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/scripts.py +0 -0
  23. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/stats.py +0 -0
  24. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/types.py +0 -0
  25. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/utils.py +0 -0
  26. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/jsutils/vocab.py +0 -0
  27. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/pyproject.toml +0 -0
  28. {json_schema_utils-0.9.10 → json_schema_utils-0.9.10.dev5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_schema_utils
3
- Version: 0.9.10
3
+ Version: 0.9.10.dev5
4
4
  Summary: JSON Schema Utils
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_schema_utils
3
- Version: 0.9.10
3
+ Version: 0.9.10.dev5
4
4
  Summary: JSON Schema Utils
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -408,6 +408,8 @@ def simplifySchema(
408
408
  for k, v in subs.items():
409
409
  if k in _IGNORABLE:
410
410
  pass
411
+ elif k in ("if", "then", "else", "not", "allOf", "anyOf", "oneOf", "$ref", "$dynamicRef"):
412
+ compat = False
411
413
  elif k in local and v == local[k]:
412
414
  pass
413
415
  elif k in local:
@@ -418,10 +420,12 @@ def simplifySchema(
418
420
  for n in v:
419
421
  if n not in local["required"]:
420
422
  compat = False
423
+ else:
424
+ compat = False
421
425
  else:
422
426
  compat = False
423
427
  if compat:
424
- log.info(f"removing ineffective {kw}")
428
+ log.info(f"removing ineffective {kw} at {lpath}")
425
429
  del local[kw]
426
430
 
427
431
  # if/then/else