Skip to content

Add eGRIDSubregionCodes #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 21, 2021
Merged

Conversation

JieXiong9119
Copy link
Contributor

See proposal.

Resolve #358 and #383

@JieXiong9119 JieXiong9119 added Non-breaking Change feature Adding new functionality to BuildingSync labels Sep 9, 2021
@JieXiong9119 JieXiong9119 self-assigned this Sep 9, 2021
@JieXiong9119 JieXiong9119 linked an issue Sep 9, 2021 that may be closed by this pull request
Copy link
Member

@nllong nllong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

baller

@nllong nllong requested a review from markborkum September 10, 2021 17:26
BuildingSync.xsd Outdated
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="eGRIDSubregionCode">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a maxOccurs="unbounded" here, assuming we want to allow more than one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the xs:sequence element implies “unbounded" - if not, I should add maxOccurs="unbounded".
Similarly, do we need to add minOccurs="1" to make it valid?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nllong sorry which line is that? It's just linking to a file diff

@JieXiong9119

The default value for both the minOccurs and the maxOccurs attributes is 1

https://www.w3.org/TR/xmlschema-0/#OccurrenceConstraints

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revised.

To allow multiple child elements under eGRIDSubregionCodes
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="eGRIDSubregionCode" maxOccurs="unbounded">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@JieXiong9119 JieXiong9119 merged commit 94b7174 into develop Sep 21, 2021
@JieXiong9119 JieXiong9119 deleted the proposal/add-egridsubregioncodes branch September 21, 2021 16:52
@JieXiong9119 JieXiong9119 added enhancement feature Adding new functionality to BuildingSync Schema: General General update to BuildingSync and removed feature Adding new functionality to BuildingSync enhancement labels Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality to BuildingSync Non-breaking Change Schema: General General update to BuildingSync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename auc:eGRIDRegionCode to auc:eGRIDSubregionCode Primary, Secondary and Tertiary eGRID Subregion Codes
3 participants