Commit 40abc929 authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Merge branch 'meeting/json_line_endings' into 'meeting/LI65'

Updating line endings when generating JSON schemas

See merge request li/schemas-definitions!138
parents c1d7ba74 aca7fe59
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -112,6 +112,6 @@ if __name__ == "__main__":
        if "Core" in schema_tuple[1]:
        if "Core" in schema_tuple[1]:
            json_string = json_string.replace('"$ref": "#/$defs/HI1Object"', '"$ref": "#/$defs/ConcreteHI1Object"')
            json_string = json_string.replace('"$ref": "#/$defs/HI1Object"', '"$ref": "#/$defs/ConcreteHI1Object"')


        with open(str(js_path), 'w') as f:
        with open(str(js_path), 'w', newline='\n') as f:
            f.write(json_string)
            f.write(json_string)
        json_schemas[js['$id']] = json.loads(json_string)
        json_schemas[js['$id']] = json.loads(json_string)
+163 −163

File changed.

Contains only whitespace changes.

+102 −102

File changed.

Contains only whitespace changes.

+722 −722

File changed.

Contains only whitespace changes.

+309 −309

File changed.

Contains only whitespace changes.

+147 −147

File changed.

Contains only whitespace changes.

+605 −605

File changed.

Contains only whitespace changes.

+231 −231

File changed.

Contains only whitespace changes.

+147 −147

File changed.

Contains only whitespace changes.

+400 −400

File changed.

Contains only whitespace changes.

Loading