Skip to content

Commit

Permalink
Add format: int64 to schema marketPartnerId
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Oct 2, 2024
1 parent 22cbfed commit 3cfe0ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# 2. Some yaml parsers fail, because: Multi-line double-quoted strings are not sufficiently indented (can be found with prettier in CI)
# 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.
# 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".
# 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).

openapi: 3.0.0
servers:
Expand Down Expand Up @@ -614,6 +615,7 @@ components:
marketPartnerId:
pattern: "\\d{13}"
type: integer
format: int64 # ERROR-5
description: Identifiziert den Marktpartner (Marktpartner-ID)
example: 9900987654321

Expand Down

0 comments on commit 3cfe0ae

Please sign in to comment.