Skip to content

Commit

Permalink
chore: adding XSD changes
Browse files Browse the repository at this point in the history
  • Loading branch information
filipelautert committed Sep 12, 2024
1 parent 5bf5c20 commit 0b8a1e4
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,55 @@
</xsd:complexType>
</xsd:element>

<!-- Attributes for changes -->
<xsd:attributeGroup name="changeAttributes">
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:attributeGroup>

<xsd:simpleType name="propertyExpression" id="propertyExpression">
<xsd:restriction base="xsd:string">
<xsd:pattern value="$\{[\w\.]+\}"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="booleanExp" id="booleanExp">
<xsd:annotation>
<xsd:appinfo>
<xsd:documentation>Extension to standard XSD boolean type to allow ${} parameters</xsd:documentation>
</xsd:appinfo>
</xsd:annotation>
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:boolean"/>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="propertyExpression"/>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>

<!-- Children for createView -->
<xsd:element name="createView">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attributeGroup ref="changeAttributes"/>
<xsd:attribute name="catalogName" type="xsd:string"/>
<xsd:attribute name="schemaName" type="xsd:string"/>
<xsd:attribute name="viewName" type="xsd:string" use="required"/>
<xsd:attribute name="remarks" type="xsd:string"/>
<xsd:attribute name="replaceIfExists" type="booleanExp"/>
<xsd:attribute name="fullDefinition" type="booleanExp"/>
<xsd:attribute name="path" type="xsd:string"/>
<xsd:attribute name="encoding" type="xsd:string"/>
<xsd:attribute name="relativeToChangelogFile" type="booleanExp"/>
<xsd:attribute name="tblProperties" type="xsd:string" />
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>

<xsd:element name="alterTableProperties">
<xsd:complexType>
<xsd:choice maxOccurs="1" minOccurs="1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,56 @@
</xsd:complexType>
</xsd:element>


<!-- Attributes for changes -->
<xsd:attributeGroup name="changeAttributes">
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:attributeGroup>

<xsd:simpleType name="propertyExpression" id="propertyExpression">
<xsd:restriction base="xsd:string">
<xsd:pattern value="$\{[\w\.]+\}"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="booleanExp" id="booleanExp">
<xsd:annotation>
<xsd:appinfo>
<xsd:documentation>Extension to standard XSD boolean type to allow ${} parameters</xsd:documentation>
</xsd:appinfo>
</xsd:annotation>
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:boolean"/>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="propertyExpression"/>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>

<!-- Children for createView -->
<xsd:element name="createView">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attributeGroup ref="changeAttributes"/>
<xsd:attribute name="catalogName" type="xsd:string"/>
<xsd:attribute name="schemaName" type="xsd:string"/>
<xsd:attribute name="viewName" type="xsd:string" use="required"/>
<xsd:attribute name="remarks" type="xsd:string"/>
<xsd:attribute name="replaceIfExists" type="booleanExp"/>
<xsd:attribute name="fullDefinition" type="booleanExp"/>
<xsd:attribute name="path" type="xsd:string"/>
<xsd:attribute name="encoding" type="xsd:string"/>
<xsd:attribute name="relativeToChangelogFile" type="booleanExp"/>
<xsd:attribute name="tblProperties" type="xsd:string" />
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>

<xsd:element name="alterTableProperties">
<xsd:complexType>
<xsd:choice maxOccurs="1" minOccurs="1">
Expand Down

0 comments on commit 0b8a1e4

Please sign in to comment.