Skip to content

Commit 3cfe0ae

Browse files
author
Konstantin
committed
Add format: int64 to schema marketPartnerId
1 parent 22cbfed commit 3cfe0ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openapi/openapi.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# 2. Some yaml parsers fail, because: Multi-line double-quoted strings are not sufficiently indented (can be found with prettier in CI)
88
# 3. Datetimes are poorly designed. Instead of using the OpenAPI format:date-time, a regex with good intentions is used. This leads to code-generators using type string instead of datetime.
99
# 4. 'format: UUID RFC4122' may not be recognized but is valid: "Formats such as "email", "uuid", and so on, MAY be used even though undefined by this specification".
10+
# 5. Typing the marketPartnerId as integer is a poor decision. For better compatability, we added the `format: int64`, so that the 13digit values fit (and they don't fit in 32bit).
1011

1112
openapi: 3.0.0
1213
servers:
@@ -614,6 +615,7 @@ components:
614615
marketPartnerId:
615616
pattern: "\\d{13}"
616617
type: integer
618+
format: int64 # ERROR-5
617619
description: Identifiziert den Marktpartner (Marktpartner-ID)
618620
example: 9900987654321
619621

0 commit comments

Comments
 (0)