diff options
author | pmikus <pmikus@cisco.com> | 2021-12-22 08:24:24 +0100 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-12-22 08:32:53 +0000 |
commit | 98ac029416d6c46755d2844e604f463930df119c (patch) | |
tree | dc55d9be1ecce7d4448869ff3768dc23326c3f55 /docs/model/current | |
parent | 7b8d6693710b4d6a239c50ea0c9b7a9d611ec25c (diff) |
fix(uti): Fixing broken code part I
Part of fixing chain after early merge.
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ie8f50fb84212c63ac9e225dfcb9bbc74fb2dd624
Diffstat (limited to 'docs/model/current')
-rw-r--r-- | docs/model/current/schema/test_case.info.schema.json | 2 | ||||
-rw-r--r-- | docs/model/current/schema/test_case.info.schema.yaml | 2 | ||||
-rw-r--r-- | docs/model/current/schema/yaml2json.py | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/docs/model/current/schema/test_case.info.schema.json b/docs/model/current/schema/test_case.info.schema.json index 358a3e7582..7df6caad61 100644 --- a/docs/model/current/schema/test_case.info.schema.json +++ b/docs/model/current/schema/test_case.info.schema.json @@ -1,5 +1,5 @@ { - "$id": "https://fd.io/FIXME/CSIT/UTI/test_case/info/0.2.0", + "$id": "https://fd.io/FIXME/CSIT/UTI/test_case/info/1.0.0", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "Schema for info output of test case.", "allOf": [ diff --git a/docs/model/current/schema/test_case.info.schema.yaml b/docs/model/current/schema/test_case.info.schema.yaml index 7771d7afec..295c2fa7cb 100644 --- a/docs/model/current/schema/test_case.info.schema.yaml +++ b/docs/model/current/schema/test_case.info.schema.yaml @@ -13,7 +13,7 @@ --- -$id: https://fd.io/FIXME/CSIT/UTI/test_case/info/0.2.0 +$id: https://fd.io/FIXME/CSIT/UTI/test_case/info/1.0.0 $schema: https://json-schema.org/draft/2020-12/schema description: >- Schema for info output of test case. diff --git a/docs/model/current/schema/yaml2json.py b/docs/model/current/schema/yaml2json.py index 6927bc0172..e891d04439 100644 --- a/docs/model/current/schema/yaml2json.py +++ b/docs/model/current/schema/yaml2json.py @@ -23,7 +23,6 @@ import yaml for filename in glob.glob(u"*.schema.yaml"): name = filename[:-5] - with open(f"{name}.yaml", u"rt") as fin: + with open(f"{name}.yaml", u"r") as fin, open(f"{name}.json", u"w") as fout: data = yaml.load(fin.read()) - with open(f"{name}.json", u"wt") as fout: json.dump(data, fout, indent=2) |