Skip to content

Remove redundant wrappers around Date and DateTime#24

Merged
Foorack merged 1 commit intomasterfrom
datetime
Jul 17, 2021
Merged

Remove redundant wrappers around Date and DateTime#24
Foorack merged 1 commit intomasterfrom
datetime

Conversation

@Foorack
Copy link
Copy Markdown
Member

@Foorack Foorack commented Jul 17, 2021

There is no point in having a DateTime model simply wrapping around a string with format date-time. The Model contained requirements for how the timestamp should look like, but that is already hard-defined by the OpenAPI specification:

  • date – full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21
  • date-time – the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

CC @Rexios80 This has a slight chance of affecting your code generation, but ideally it shouldn't.

@Foorack Foorack added Type: Maintenance This will neither fix incorrectness nor add value, but is rather a project cleanup Priority: Medium Normal priority Status: Review Needed Awaiting someone to Review this PR labels Jul 17, 2021
@Foorack Foorack self-assigned this Jul 17, 2021
@Foorack Foorack added Status: Completed We did it! Ready to merge! and removed Status: Review Needed Awaiting someone to Review this PR labels Jul 17, 2021
@Foorack Foorack merged commit be73a84 into master Jul 17, 2021
@Foorack Foorack deleted the datetime branch July 17, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Medium Normal priority Status: Completed We did it! Ready to merge! Type: Maintenance This will neither fix incorrectness nor add value, but is rather a project cleanup

Development

Successfully merging this pull request may close these issues.

1 participant