Skip to content

Commit

Permalink
[repository schema] Support mixed expression/script languages FIXTrad…
Browse files Browse the repository at this point in the history
  • Loading branch information
donmendelson committed Jun 30, 2022
1 parent 9bae267 commit 524d27d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
6 changes: 3 additions & 3 deletions repository/src/main/resources/xsd/repository.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@
</xs:annotation>
</xs:attribute>
<xs:attribute name="applVerId" type="xs:string"/>
<xs:attribute name="expressionLanguage" type="xs:string" default="Score">
<xs:attributeGroup ref="fixr:expressionGrp">
<xs:annotation>
<xs:documentation>The syntax of 'expressionType'</xs:documentation>
<xs:documentation>Global syntax of 'expressionType'</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>
</xs:complexType>
<xs:key name="typeKey">
<xs:selector xpath="fixr:codeSets/fixr:codeSet|fixr:datatypes/fixr:datatype"/>
Expand Down
24 changes: 18 additions & 6 deletions repository/src/main/resources/xsd/repositorytypes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,28 @@
<xs:simpleType name="EP_t">
<xs:restriction base="xs:integer"/>
</xs:simpleType>
<xs:simpleType name="expressionType">
<xs:attributeGroup name="expressionGrp">
<xs:annotation>
<xs:documentation>Attributes of expressions
</xs:documentation>
</xs:annotation>
<xs:attribute name="expressionLanguage" type="xs:string" default="Score">
<xs:annotation>
<xs:documentation>Name of a scripting language or DSL</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>
<xs:complexType name="expressionType">
<xs:annotation>
<xs:documentation>Expressed in a Domain Specific Language
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="1024"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attributeGroup ref="fixr:expressionGrp"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:attributeGroup name="fieldAttribGrp">
<xs:annotation>
<xs:documentation>Attributes of a field that be overridden by a rule
Expand Down Expand Up @@ -435,7 +448,6 @@
<xs:annotation>
<xs:documentation>Content of element holds an assignment expression
for a message field or state variable.
This can be used for field validation.
</xs:documentation>
</xs:annotation>
</xs:element>
Expand Down

0 comments on commit 524d27d

Please sign in to comment.