Skip to content

Fix epochs schema to resolve double nesting of sdpi:Epoch element.#521

Open
PaulMartinsen wants to merge 3 commits intomasterfrom
520-example-13-does-not-comply-to-the-schema-because-of-sdpiepochs
Open

Fix epochs schema to resolve double nesting of sdpi:Epoch element.#521
PaulMartinsen wants to merge 3 commits intomasterfrom
520-example-13-does-not-comply-to-the-schema-because-of-sdpiepochs

Conversation

@PaulMartinsen
Copy link
Copy Markdown
Collaborator

📑 Description

Resolves TimeStampVersion.xsd schema bug in #520 to avoid nesting sdpi:Epoch found by Leon.

☑ Mandatory Tasks

The following aspects have been respected by the pull request assignee and at least one reviewer:

  • Changelog update (necessity checked and entry added or not added respectively)
  • Pull Request Assignee
  • Reviewer

Comment thread sources/extension-models/timestamp/TimeStampVersion.xsd
<!---->
<!--Epochs-->
<xsd:element name="Epochs">
<xsd:element name="Epochs" type="sdpi:EpochsType">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I suppose, this is a BICEPS extensions, isn't it? It lacks the necessary MustUnderstand attribute then.

It is recommended to add the optional attribute to the element that represents the extension rather than adding it to the type. That would result in "Epochs" being:

<xsd:element name="Epochs">
  <xsd:complexType>
    <xsd:complexContent>
      <xsd:extension base="sdpi:EpochsType">
        <xsd:attribute ref="ext:MustUnderstand" use="optional" />
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
</xsd:element>

Copy link
Copy Markdown
Collaborator

@d-gregorczyk d-gregorczyk left a comment

Choose a reason for hiding this comment

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

Found another one; sorry for the late review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Example 13 does not comply to the schema, because of sdpi:Epochs

3 participants