Skip to content

Commit

Permalink
model.datatypes: add DateTimeStamp to AnyXSDType
Browse files Browse the repository at this point in the history
The AAS Manager uses typehints to generate a list of possible types for
a value. Since `DateTimeStamp` was missing, it was impossible to store a
`DateTimeStamp` value via AAS Manager.
  • Loading branch information
jkhsjdhjs committed Oct 5, 2023
1 parent 6fd70b8 commit 3ac150d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions basyx/aas/model/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,10 @@ def from_string(cls, value: str) -> "NormalizedString":


AnyXSDType = Union[
Duration, DayTimeDuration, YearMonthDuration, DateTime, Date, Time, GYearMonth, GYear, GMonthDay, GMonth, GDay,
Boolean, Base64Binary, HexBinary, Float, Double, Decimal, Integer, Long, Int, Short, Byte, NonPositiveInteger,
NegativeInteger, NonNegativeInteger, PositiveInteger, UnsignedLong, UnsignedInt, UnsignedShort, UnsignedByte,
AnyURI, String, NormalizedString]
Duration, DayTimeDuration, YearMonthDuration, DateTime, DateTimeStamp, Date, Time, GYearMonth, GYear, GMonthDay,
GMonth, GDay, Boolean, Base64Binary, HexBinary, Float, Double, Decimal, Integer, Long, Int, Short, Byte,
NonPositiveInteger, NegativeInteger, NonNegativeInteger, PositiveInteger, UnsignedLong, UnsignedInt, UnsignedShort,
UnsignedByte, AnyURI, String, NormalizedString]


XSD_TYPE_NAMES: Dict[Type[AnyXSDType], str] = {
Expand Down

0 comments on commit 3ac150d

Please sign in to comment.