summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
7b8d669)
Part of fixing chain after early merge.
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ie8f50fb84212c63ac9e225dfcb9bbc74fb2dd624
- "$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": [
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Schema for info output of test case.",
"allOf": [
-$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.
$schema: https://json-schema.org/draft/2020-12/schema
description: >-
Schema for info output of test case.
for filename in glob.glob(u"*.schema.yaml"):
name = filename[:-5]
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())
data = yaml.load(fin.read())
- with open(f"{name}.json", u"wt") as fout:
json.dump(data, fout, indent=2)
json.dump(data, fout, indent=2)