Mercurial > hgrepos > Python > libs > data-schema
changeset 43:4ca530618303
Enhance for formery added check when handling conditionals after resolving schema references
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 20 Jul 2023 09:37:22 +0200 |
| parents | 0e7acd426e3a |
| children | ea8c2d01a9d9 |
| files | tests/test_schema.py |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_schema.py Thu Jul 20 09:20:31 2023 +0200 +++ b/tests/test_schema.py Thu Jul 20 09:37:22 2023 +0200 @@ -1142,6 +1142,7 @@ "then": {"$type": None}} ]}}}) r = data_schema.process_schema_conditionals(schema, self._ctx) + self.assertIs(r, schema) r = data_schema.process_schema_references(r, self._ctx, check_single_ref_key=False) self.assertIsNot(r, schema) self.assertEqual("string", r["$type"])
