Skip to content

Commit

Permalink
Merge pull request #688 from i-Cell-Mobilsoft-Open-Source/feature/685…
Browse files Browse the repository at this point in the history
…-generalization-of-xsd-date-types

#685 Generalization of XSD date types
  • Loading branch information
jhamrak authored Jul 15, 2024
2 parents 83cbea7 + e4bd5f7 commit 5a984a4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,14 @@
<xsd:maxExclusive value="9999.9999999999999999" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="DateType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Generic local date</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:date">
<xsd:pattern value="\d{4}-\d{2}-\d{2}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="TimestampType">
<xsd:annotation>
<xsd:documentation>Időbélyeg típus ISO "yyyy-MM-dd'T'HH:mm:ss.SSSSSSZ"
Expand All @@ -337,6 +345,14 @@
value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?Z" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="TimestampWithoutMillisType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Generic UTC timestamp without milliseconds part</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:dateTime">
<xsd:pattern value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z"/>
</xsd:restriction>
</xsd:simpleType>
<!-- GROUPS -->
<xsd:group name="BaseAuditDateGroup">
<xsd:sequence>
Expand Down
13 changes: 12 additions & 1 deletion docs/en/migration/migration270to280.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,15 @@ Changes are backwards compatible doesn't need any migration.

==== Migration

* Changes are backwards compatible doesn't need any migration.
* Changes are backwards compatible doesn't need any migration.

=== coffee-dto-base

New XSD simple types are added to the `http://common.dto.coffee.icellmobilsoft.hu/common` XSD namespace:

* DateType - xsd:date with yyyy-MM-dd pattern
* TimestampWithoutMillisType - xsd:dateTime with yyyy-MM-ddTHH:mm:ssZ pattern

==== Migration

Changes are backwards compatible doesn't need any migration.
11 changes: 11 additions & 0 deletions docs/hu/migration/migration270to280.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,14 @@ A változtatások nem eredményeznek átállási munkálatokat, visszafelé komp
==== Átállás

* A változtatások nem eredményeznek átállási munkálatokat, visszafelé kompatibilis.

=== coffee-dto-base

Új XSD simple type-okkal bővült a `http://common.dto.coffee.icellmobilsoft.hu/common` névterű XSD:

* DateType - xsd:date típus yyyy-MM-dd formátummal
* TimestampWithoutMillisType - xsd:dateTime típus yyyy-MM-ddTHH:mm:ssZ formátummal

==== Átállás

A változtatások nem eredményeznek átállási munkálatokat, visszafelé kompatibilis.

0 comments on commit 5a984a4

Please sign in to comment.