Skip to content

Commit

Permalink
Add project name/path unique constraints to the schema file
Browse files Browse the repository at this point in the history
  • Loading branch information
luk1337 committed Oct 6, 2024
1 parent d20da9a commit 8d47010
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions manifest.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
<xs:element name="project" minOccurs="0" maxOccurs="unbounded" type="project"/>
</xs:sequence>
</xs:complexType>

<xs:unique name="UniqueProjectName">
<xs:selector xpath="project"/>
<xs:field xpath="@name"/>
</xs:unique>

<xs:unique name="UniqueProjectPath">
<xs:selector xpath="project"/>
<xs:field xpath="@path"/>
</xs:unique>
</xs:element>

<xs:complexType name="project">
Expand Down

0 comments on commit 8d47010

Please sign in to comment.