Skip to content

Commit

Permalink
Improvements to definition creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cspray committed Nov 10, 2024
1 parent 83e26f8 commit 6eaebba
Show file tree
Hide file tree
Showing 111 changed files with 2,627 additions and 2,721 deletions.
37 changes: 6 additions & 31 deletions annotated-container-definition.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,9 @@
<xs:complexType name="serviceDefinitionType">
<xs:all>
<xs:element name="type" type="fullyQualifiedClassNameString" />
<xs:element name="name" type="xs:token" />
<xs:element name="profiles" type="profilesType" />
<xs:element name="concreteOrAbstract" type="concreteOrAbstractType" />
<xs:element name="attribute" type="base64EncodedString" />
</xs:all>
<xs:attribute name="isPrimary" type="xs:boolean" default="false" />
<xs:attribute name="isConcrete" type="xs:boolean" />
</xs:complexType>

<xs:complexType name="aliasDefinitionsType">
Expand Down Expand Up @@ -105,55 +102,33 @@
<xs:element name="method" type="classMethodString" />
<xs:element name="parameter" type="classMethodParameterString" />
<xs:element name="valueType" type="injectValueType" />
<xs:element name="value" type="base64EncodedString" />
<xs:element name="profiles" type="profilesType" />
<xs:element name="store" type="xs:token" />
<xs:element name="attribute" type="base64EncodedString" />
</xs:all>
</xs:complexType>

<xs:complexType name="injectValueType">
<xs:choice>
<xs:element name="type" type="base64EncodedString" />
<xs:element name="type" type="xs:token" />
<xs:element name="typeUnion" type="typeUnionType" />
<xs:element name="typeIntersect" type="typeIntersectType" />
</xs:choice>
</xs:complexType>

<xs:complexType name="profilesType">
<xs:sequence maxOccurs="unbounded">
<xs:element name="profile" type="profileString" />
</xs:sequence>
</xs:complexType>

<xs:complexType name="typeIntersectType">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="type" type="base64EncodedString" />
<xs:sequence maxOccurs="unbounded">
<xs:element name="type" type="xs:token" />
</xs:sequence>
</xs:complexType>

<xs:complexType name="typeUnionType">
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:sequence maxOccurs="unbounded">
<xs:choice>
<xs:element name="type" type="base64EncodedString" />
<xs:element name="type" type="xs:token" />
<xs:element name="typeIntersect" type="typeIntersectType" />
</xs:choice>
</xs:sequence>
</xs:complexType>

<xs:simpleType name="profileString">
<xs:restriction base="xs:string">
<xs:minLength value="1" />
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="concreteOrAbstractType">
<xs:restriction base="xs:string">
<xs:enumeration value="Concrete" />
<xs:enumeration value="Abstract" />
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="fullyQualifiedClassNameString">
<xs:restriction base="xs:string">
<xs:minLength value="1" />
Expand Down
Loading

0 comments on commit 6eaebba

Please sign in to comment.