Skip to content
Snippets Groups Projects
Verified Commit ce21eb96 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Also changed in tests.

parent 884e9a55
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!84F more jsonschema export
Pipeline #43332 passed
......@@ -112,8 +112,8 @@ def test_empty_rt():
assert len(schema["required"]) == 0
assert schema["additionalProperties"] is False
schema = rtjs(rt, name_for_new_reference_records=True,
description_for_new_reference_records=True)
schema = rtjs(rt, name_property_for_new_records=True,
description_property_for_new_records=True)
assert len(schema["properties"]) == 2
assert "name" in schema["properties"]
......@@ -440,8 +440,8 @@ def test_rt_with_references():
rt = db.RecordType()
rt.add_property(name="RefProp", datatype=db.LIST("OtherType"))
schema = rtjs(rt, additional_properties=False, name_for_new_reference_records=True,
description_for_new_reference_records=True)
schema = rtjs(rt, additional_properties=False, name_property_for_new_records=True,
description_property_for_new_records=True)
assert schema["additionalProperties"] is False
assert "name" in schema["properties"]
assert schema["properties"]["name"]["type"] == "string"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment