Skip to content

Commit

Permalink
Merge pull request #82 from EFA-FHB/feature/D603345-4795-release-1.0.6
Browse files Browse the repository at this point in the history
Feature/D603345-4795 Release 1.0.6
  • Loading branch information
DanelRod authored Sep 22, 2023
2 parents 22b939c + 8d955cb commit b60b358
Show file tree
Hide file tree
Showing 12 changed files with 462 additions and 88 deletions.
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ org.gradle.caching=true

#Scripts needs adoption if this name is being removed
name=eforms-validator-core
version=1.0.5
version=1.0.6
group=com.nortal.efafhb.eforms.validator

# Spotless (Java 17)
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/openapi/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ info:
Über diesen Endpunkt können Bekanntmachungen im eForms Format validiert werden.
Für die eForms-DE Validierung in Version 1.0. wird aktuell eine Kombination aus folgenden Schema und Schematron Regeln genutzt:
* eForms-EU 1.5.1 [https://github.com/OP-TED/eForms-SDK/tree/1.5.1](https://github.com/OP-TED/eForms-SDK/tree/1.5.1)
* eForms-DE 1.0.1 (eforms-de-schematron v0.5.2) [https://projekte.kosit.org/eforms/eforms-de-schematron/-/tags/v0.5.2](https://projekte.kosit.org/eforms/eforms-de-schematron/-/tags/v0.5.2) und eForms-EU 1.5.1 [https://github.com/OP-TED/eForms-SDK/tree/1.5.1](https://github.com/OP-TED/eForms-SDK/tree/1.5.1)
* eForms-DE 1.1.0 (eforms-de-schematron v0.6.0) [https://projekte.kosit.org/eforms/eforms-de-schematron/-/tags/v0.6.0](https://projekte.kosit.org/eforms/eforms-de-schematron/-/tags/v0.6.0) und eForms-EU 1.7.0 [https://github.com/OP-TED/eForms-SDK/tree/1.7.0](https://github.com/OP-TED/eForms-SDK/tree/1.7.0)
* eForms-DE 1.0.1 (eforms-de-schematron v0.5.3) [https://projekte.kosit.org/eforms/eforms-de-schematron/-/tags/v0.5.3](https://projekte.kosit.org/eforms/eforms-de-schematron/-/tags/v0.5.3) und eForms-EU 1.5.1 [https://github.com/OP-TED/eForms-SDK/tree/1.5.1](https://github.com/OP-TED/eForms-SDK/tree/1.5.1)
* eForms-DE 1.1.0 (eforms-de-schematron v0.6.1) [https://projekte.kosit.org/eforms/eforms-de-schematron/-/tags/v0.6.1](https://projekte.kosit.org/eforms/eforms-de-schematron/-/tags/v0.6.1) und eForms-EU 1.7.0 [https://github.com/OP-TED/eForms-SDK/tree/1.7.0](https://github.com/OP-TED/eForms-SDK/tree/1.7.0)
contact:
name: oeffentliche-vergabe-support@nortal.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<xsd:element name="Change" type="ChangeType"/>
<xsd:element name="Changes" type="ChangesType"/>
<xsd:element name="ChangeReason" type="ReasonType"/>
<xsd:element name="ChangedSection" type="ChangedSectionType"/>
<xsd:element name="Company" type="CompanyType"/>
<xsd:element name="ConcessionRevenue" type="ConcessionRevenueType"/>
<xsd:element name="ContractAggregatedAmounts" type="ContractAggregatedAmountsType"/>
Expand Down Expand Up @@ -188,10 +189,10 @@
</xsd:complexType>
<xsd:complexType name="ChangeType">
<xsd:sequence>
<xsd:element ref="efbc:ChangedSectionIdentifier" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="efbc:ChangeDescription" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="efbc:ProcurementDocumentsChangeDate" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="efbc:ProcurementDocumentsChangeIndicator" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="efac:ChangedSection" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ChangesType">
Expand All @@ -201,6 +202,11 @@
<xsd:element ref="efac:ChangeReason" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ChangedSectionType">
<xsd:sequence>
<xsd:element ref="efbc:ChangedSectionIdentifier" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CompanyType">
<xsd:sequence>
<xsd:element ref="cbc:WebsiteURI" minOccurs="0" maxOccurs="1"/>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/schematron/de/excluded_rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ BR-BT-00805-0051
BR-BT-00165-0052
BR-BT-00067-0104
BR-BT-00011-0052
BR-BT-00740-0052
BR-BT-00740-0052
BR-BT-00738-0053
BR-BT-00005-0150
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,22 @@
<assert id="CR-BT-01-Germany" test="exists(cac:TenderingTerms/cac:ProcurementLegislationDocumentReference/cbc:ID)" role="error">[CR-BT-01-Germany] cac:TenderingTerms/cac:ProcurementLegislationDocumentReference/cbc:ID must exist in <name />.</assert>
</rule>


<rule context="$ROOT-NODE/cbc:RequestedPublicationDate">

<let name="DISPATCH-DATE-NODE" value="../cbc:IssueDate" />

<assert test="$DISPATCH-DATE-NODE castable as xs:date" id="SR-BT-738-2">[SR-BT-738-2] ../cbc:IssueDate=<value-of select="../cbc:IssueDate"/> is not a valid calendar date.</assert>

<assert id="SR-BT-738-1" test=" xs:date(.) ge xs:date($DISPATCH-DATE-NODE)" role="error">[SR-DE-26] Calendar date of <name />=<value-of select="." /> must be greater or equals that of cbc:IssueDate=<value-of select="$DISPATCH-DATE-NODE" /></assert>

<!-- This rule is replacement of BR-BT-00738-0053 to keep compatibility with TED -->
<assert id="SR-BT-738-P60D" test="xs:date(.) - xs:date($DISPATCH-DATE-NODE) le xs:dayTimeDuration('P92D')">[SR-BT-738-P60D](<name/>) must not be more than 92 days after IssueDate due to TED requirements. <value-of select="concat('Current IssueDate=',xs:date($DISPATCH-DATE-NODE),' and RequestedPublicationDate=', xs:date(.), ' have a difference of ' , days-from-duration( xs:date(.) - xs:date($DISPATCH-DATE-NODE)), ' days.')"/></assert>

</rule>



<!-- Be aware that it is about UBO as child of efac:Organizations https://github.com/OP-TED/eForms-SDK/discussions/440 -->
<rule
context="$EXTENSION-NODE/efac:Organizations/efac:UltimateBeneficialOwner">
Expand Down Expand Up @@ -334,18 +350,6 @@

</rule>

<rule
context="$ROOT-NODE/cac:ProcurementProjectLot[cbc:ID/@schemeName = 'Part']/cac:TenderingTerms">
<!-- sanityrule for bt-15 part -->
<assert id="SR-DE-24" test="
if ($SUBTYPE = $SUBTYPES-BT-15) then
(count(cac:CallForTendersDocumentReference) >= 1)
else
true()" role="error">[SR-DE-24] cac:CallForTendersDocumentReference must exist at least once in <name />. </assert>

</rule>


<!-- following rules CR-DE-BT-708-Part and CR-DE-BT-708-Lot may be combined into single one -->
<rule
context="$ROOT-NODE/cac:ProcurementProjectLot[cbc:ID/@schemeName = 'Lot']/cac:TenderingTerms/cac:CallForTendersDocumentReference">
Expand Down
Loading

0 comments on commit b60b358

Please sign in to comment.