diggsweden / sdk-docs

Dokumentation för SDK-projeket.
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

SDK-API: Add format to creationDateTimeDef #6

Open mcNisse opened 2 weeks ago

mcNisse commented 2 weeks ago

Contact Details (Optional)

johan.erlands@idainfront.se

What benefits does the suggestion solve?

This make the code easier to handle. Less error risk of adding date that isn't a date. Without the change generated code is a string. With the change the type is changed to one that produces the correct format. For java that is a OffsetDateTime.

Feature suggestion description

      type: string
      description: "Tidsstämpel för när meddelandet skapades. Tidszon UTC skall användas"
      example: "2019-08-15T17:52:58.1Z"

changed to

      type: string
      format: date-time
      description: "Tidsstämpel för när meddelandet skapades. Tidszon UTC skall användas"
      example: "2019-08-15T17:52:58.1Z"

Alternative solutions (Optional)

No response

Additional information (Optional)

No response