Skip to content

Commit

Permalink
Merge pull request #239 from cwacek/revert-219-feature/217
Browse files Browse the repository at this point in the history
Revert "WIP: Resolve defaults through reffs"
  • Loading branch information
cwacek authored Aug 7, 2023
2 parents 916468f + 740f82e commit ca7e4dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
3 changes: 0 additions & 3 deletions python_jsonschema_objects/classbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,6 @@ def _build_object(self, nm, clsdata, parents, **kw):
props[prop] = make_property(prop, {"type": typ}, typ.__doc__)
properties[prop]["$ref"] = ref
properties[prop]["type"] = typ
if getattr(typ, "default", None) is not None:
defaults.add(prop)
properties[prop]["default"] = typ.default()

elif "oneOf" in detail:
potential = self.expand_references(nm, detail["oneOf"])
Expand Down
37 changes: 0 additions & 37 deletions test/test_regression_217.py

This file was deleted.

0 comments on commit ca7e4dc

Please sign in to comment.