Skip to content

Commit

Permalink
Add apteryx schema file
Browse files Browse the repository at this point in the history
Signed-off-by: carlgsmith <[email protected]>
  • Loading branch information
sparlane authored and carlgsmith committed Feb 16, 2015
1 parent 78cfe9a commit 9013580
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ install: all
@install -d $(DESTDIR)/$(PREFIX)/bin
@install -D apteryxd $(DESTDIR)/$(PREFIX)/bin/
@install -D apteryx $(DESTDIR)/$(PREFIX)/bin/
@install -d $(DESTDIR)/etc/apteryx/schema
@install -D -m 0644 apteryx.xsd $(DESTDIR)/etc/apteryx/schema/

clean:
@echo "Cleaning..."
Expand Down
24 changes: 24 additions & 0 deletions apteryx.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://github.com/ATL-NZ/apteryx"
xmlns="https://github.com/ATL-NZ/apteryx"
elementFormDefault="qualified">
<xs:element name="NODE">
<xs:complexType>
<xs:sequence>
<xs:element ref="NODE" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="default" type="xs:string" use="optional" />
<xs:attribute name="value" type="xs:string" use="optional" />
<xs:attribute name="help" type="xs:string" use="optional" />
<xs:attribute name="hidden" type="xs:boolean" use="optional" />
</xs:complexType>
</xs:element>
<xs:element name="MODULE">
<xs:complexType>
<xs:sequence>
<xs:element ref="NODE" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

0 comments on commit 9013580

Please sign in to comment.