Skip to content

Commit e1c5e4b

Browse files
committed
yml/xml support
1 parent d969095 commit e1c5e4b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Metadata/schema/metadata.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
<xsd:complexType name="subresource" mixed="true">
8181
<xsd:attribute type="xsd:boolean" name="collection"/>
8282
<xsd:attribute type="xsd:string" name="resourceClass"/>
83+
<xsd:attribute type="xsd:integer" name="maxDepth"/>
8384
</xsd:complexType>
8485

8586
<xsd:complexType name="property">

tests/Fixtures/FileConfigurations/resources.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
writableLink="false"
5555
required="true"
5656
>
57-
<subresource collection="true" resourceClass="Foo" />
57+
<subresource collection="true" resourceClass="Foo" maxDepth="1" />
5858
<attribute name="foo">
5959
<attribute>Foo</attribute>
6060
</attribute>

tests/Fixtures/FileConfigurations/resources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resources:
2828
iri: 'someirischema'
2929
properties:
3030
'foo':
31-
subresource: {collection: true, resourceClass: 'Foo'}
31+
subresource: {collection: true, resourceClass: 'Foo', maxDepth: 1}
3232
description: 'The dummy foo'
3333
readable: true
3434
writable: true

0 commit comments

Comments
 (0)