Skip to content

[pull] master from OpenAPITools:master - #760

Merged
pull[bot] merged 3 commits into
transparencies:masterfrom
OpenAPITools:master
Aug 19, 2026
Merged

pull[bot] merged 3 commits into
transparencies:masterfrom
OpenAPITools:master

Conversation

@pull

@pull pull Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

wing328 and others added 3 commits August 19, 2026 15:38
* fix(dart): do not convert format: date fields to UTC before formatting

_dateFormatter is DateFormat('yyyy-MM-dd'), which formats the y/m/d the
DateTime already carries and performs no timezone conversion. Calling
toUtc() first therefore does nothing except roll the clock back past
midnight in UTC+X zones, so the formatter prints the previous day.

Combined with mapDateTime parsing the bare wire value "2026-09-12" as
local midnight, the round trip in Europe/Oslo is "2026-09-12" ->
"2026-09-11". It is stable in UTC, which is why this went unnoticed.

Removing toUtc() is safe in both directions: toUtc() returns this when
the DateTime is already UTC, so UTC callers are unaffected, and local
callers stop being shifted. The neighbouring isDateTime branch keeps
toUtc() - an instant needs a zone, a calendar date does not. dart-dio
already models this correctly with its own Date class.

fix #24703

* test(dart): cover all four format: date branches

The first test only exercised the plain, no-pattern branch, so three of the
four changed template lines were unguarded. Adding a patterned date to the
fixture plus a second test that generates with useOptional=true pins all
four:

  plain / no pattern      requiredDate, optionalDate
  plain / pattern         patternedDate
  Optional / no pattern   optionalDate   (useOptional=true)
  Optional / pattern      patternedDate  (useOptional=true)

Replace the blanket assertFileNotContains(".toUtc()") with assertions on the
specific emitted lines. The blanket one would break if an unrelated
date-time property were ever added to the shared fixture.

Also correct the comment: toUtc() shifts the date in both directions, back a
day east of UTC and forward a day west of it, not only backwards.
* Java/Spring handling of required+nullable in models

* Java/Spring handling of required+nullable in models

* Remove @NotNull under jspecify

* merge master

* merge master

* new files generated

* keep formatting, regenerate samples

* regenerate samples

* Keep @NotNull for JsonInclude field

* Fix cubic findings

* fix missing description

* Fix failing removeAnnotationsWithExclusion

* Fix cubic finding

* Schema nullable=true generation
Make JSonNullable<> field = null for nullable+required

* Rollback: @NotNull should not be present for required+nullable + openapiNullable

* Fix a NPE in add and put item

* Add @present comment
@pull pull Bot locked and limited conversation to collaborators Aug 19, 2026
@pull pull Bot added the ⤵️ pull label Aug 19, 2026
@pull
pull Bot merged commit 2767397 into transparencies:master Aug 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants