feat(docker-api): bump docker api schema version to v1.54#258
feat(docker-api): bump docker api schema version to v1.54#258Fahl-Design merged 5 commits intomainfrom
Conversation
Hand-fix v1.54-patched.yaml so generated client survives real Docker API responses. Same class of fixes the v1.51 spec carries. - Convert nullable: true to OpenAPI 3.1 `type: [orig, 'null']` union. jane open-api-3-1 ignores nullable: true; only honors the type-array form. - Walk components.schemas and add 'null' to every non-required scalar/array property. Skip type:object with $ref additionalProperties (e.g. NetworkSettings.Networks) — making those nullable triggers a jane codegen bug where isOnlyNumericKeys short-circuits the denormalize loop. - Mark HostConfig and PortMap nullable at schema level. - Rename `format: date-time` to `format: dateTime`. jane parses date-time as `Y-m-d\TH:i:sP` which fails on Docker's nano-precision timestamps; the typo lets the field stay as a plain string (matches v1.51 hand-fix). `bin/docker-api docker:list -vv` now succeeds end-to-end against a live socket. composer test 7/7 green.
Codify the v1.54 spec hand-fixes so future Docker API bumps don't have to rediscover them. Also keeps patch logic out of ad-hoc shell snippets. - spec/patch.py: idempotent ruamel.yaml-based patcher. Renames `format: date-time` → `dateTime`, converts `nullable: true` to OpenAPI 3.1 type-arrays, walks schemas for non-required scalar/array/safe-object props, and marks HostConfig + PortMap schema-level nullable. Skips object+$ref-additionalProperties to avoid jane open-api-3-1 codegen bug. - spec/UPDATE.md: insert post-conversion patch step plus a "known traps" section covering date-time, nullable, and the jane object-map codegen bug.
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughThe pull request updates the OpenAPI generator configuration to target Docker OpenAPI spec version Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🎉 This PR is included in version 1.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary by CodeRabbit
Release Notes