Skip to content

Commit

Permalink
Merge pull request #2979 from SEED-platform/feature-2938/add-building…
Browse files Browse the repository at this point in the history
…sync-v2.4

feature: bumped BuildingSync version up to 2.4.0
  • Loading branch information
Ryo committed Nov 2, 2021
2 parents 436c5f7 + 6c70ebc commit c079116
Show file tree
Hide file tree
Showing 6 changed files with 16,753 additions and 5 deletions.
5 changes: 4 additions & 1 deletion seed/building_sync/building_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ class BuildingSync(object):
BUILDINGSYNC_V2_1_0 = '2.1.0'
BUILDINGSYNC_V2_2_0 = '2.2.0'
BUILDINGSYNC_V2_3_0 = '2.3.0'
BUILDINGSYNC_V2_4_0 = '2.4.0'
VERSION_MAPPINGS_DICT = {
BUILDINGSYNC_V2_0: BASE_MAPPING_V2,
BUILDINGSYNC_V2_2_0: BASE_MAPPING_V2,
BUILDINGSYNC_V2_3_0: BASE_MAPPING_V2
BUILDINGSYNC_V2_3_0: BASE_MAPPING_V2,
BUILDINGSYNC_V2_4_0: BASE_MAPPING_V2
}

def __init__(self):
Expand Down Expand Up @@ -191,6 +193,7 @@ def get_schema(cls, version):
cls.BUILDINGSYNC_V2_1_0: 'BuildingSync_v2_1_0.xsd',
cls.BUILDINGSYNC_V2_2_0: 'BuildingSync_v2_2_0.xsd',
cls.BUILDINGSYNC_V2_3_0: 'BuildingSync_v2_3_0.xsd',
cls.BUILDINGSYNC_V2_4_0: 'BuildingSync_v2_4_0.xsd',
}
if version in schema_files:
schema_path = os.path.join(schema_dir, schema_files[version])
Expand Down
2 changes: 1 addition & 1 deletion seed/building_sync/schemas/BuildingSync_v2_2_0.xsd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:auc="http://buildingsync.net/schemas/bedes-auc/2019" xmlns:gbxml="http://www.gbxml.org/schema" targetNamespace="http://buildingsync.net/schemas/bedes-auc/2019" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.2.0">
<xs:import namespace="http://www.gbxml.org/schema" schemaLocation="http://www.gbxml.org/schema/6-01/GreenBuildingXML_Ver6.01.xsd"/>
<xs:import namespace="http://www.gbxml.org/schema" schemaLocation="https://github.com/BuildingSync/gbXML_Schemas/releases/download/v6.01/GreenBuildingXML_Ver6.01.xsd"/>
<xs:annotation>
<xs:documentation>BuildingSync Schema - Version 2.2.0</xs:documentation>
<xs:documentation xmlns="http://www.w3.org/1999/xhtml">
Expand Down
2 changes: 1 addition & 1 deletion seed/building_sync/schemas/BuildingSync_v2_3_0.xsd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:auc="http://buildingsync.net/schemas/bedes-auc/2019" xmlns:gbxml="http://www.gbxml.org/schema" targetNamespace="http://buildingsync.net/schemas/bedes-auc/2019" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.3.0">
<xs:import namespace="http://www.gbxml.org/schema" schemaLocation="http://www.gbxml.org/schema/6-01/GreenBuildingXML_Ver6.01.xsd"/>
<xs:import namespace="http://www.gbxml.org/schema" schemaLocation="https://github.com/BuildingSync/gbXML_Schemas/releases/download/v6.01/GreenBuildingXML_Ver6.01.xsd"/>
<xs:annotation>
<xs:documentation>BuildingSync Schema - Version 2.3.0</xs:documentation>
<xs:documentation xmlns="http://www.w3.org/1999/xhtml">
Expand Down

0 comments on commit c079116

Please sign in to comment.