The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content

Appendix A - Data Types

The following table contains several data types that are compatible with OpenAPI specifications. It is recommended to use the "format" property in OpenAPI to enable validation and interoperability between client and server. Preference is given to "formats" defined in OpenAPI (or JsonSchema).

Rationale: Date and time formats are based on RFC3339 which is subset of all ISO8601. RFC3339 has been adopted by OpenAPI and JsonSchema. Using RFC339 simplifies validation, interoperability and documentation. Another benefit of RFC3339 is its formal syntax description based on the Augmented Backus–Naur form. This is an important basis for formal syntax consistency checking and other automated analysis tasks that can help to analyze and validate this specification.

Please propose additional format recommendations to the Xcelerator API working group.

TypeOpenAPI typeOpenAPI formatDescriptionExample
BooleanbooleanOne of the two Boolean values (true or false).true
ObjectobjectA complex type consisting of zero or more fields. An object must be serialized according to the media type definition.{"foo":"bar"}
ArrayarrayAn array containing values of the same type.["factory","building","large drive"]
Integerintegerint32Signed 32-bit integers (commonly used integer type).4528742457
Long integerintegerint64Signed 64-bit integers (long type).452874245788765
FloatnumberfloatFloating-point numbers.3.1415927
DoublenumberdoubleFloating-point numbers with double precision.3.141592653589793
StringstringAn arbitrary string of characters."APIs rock!"
Date & timestringdate-timeA timestamp following RFC 3339."2023-04-03T16:45:30.789Z"
DatestringdateA date following RFC 3339."2023-04-03"
TimestringtimeTime value following RFC 3339."16:45:30.789Z"
EmailstringemailAn email address following RFC 5322.johndoe@siemens.com
URIstringuriA web URI following RFC 3986.https://www.siemens.com
UUIDstringuuidA Universally Unique Identifier following RFC 4122."06cd70a1-cd79-4d70-b2b4-fd9dca449848"
Regular expressionstringregexA regular expression following ECMA 262."^[a-z]+$"
IPV4stringA string representing an IPV4 IP address following RFC 2673"104.75.173.179"
IPV6stringA string representing an IPV6 IP address following RFC 4291"2600:1401:2::8a"
MACstringA string representing a MAC address."00:80:41:11:fd:7e"