| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Convert the finalized Swagger 2 artifact to a deterministic OpenAPI 3.0.3 document with strict parity validation and additive CI coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ ShareComment @coderabbitai help to get the list of available commands. |
Sorry, something went wrong.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Sorry, something went wrong.
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
Sorry, something went wrong.
|
@SocketSecurity ignore npm/es6-promise@3.3.1 Reviewed as an acceptable risk for this PR. This transitive dependency is used only by node-readfiles, which is imported by swagger2openapi’s separate validator CLI and is not loaded by our convertObj library path. The flagged file is the package’s documented minified browser bundle; it matches the package’s declared upstream source commit byte-for-byte and includes source maps with the original sources. The lockfile integrity matches the npm registry, registry signatures verify, npm audit reports no vulnerabilities, and the package has no install lifecycle hooks. |
Sorry, something went wrong.
|
@SocketSecurity ignore npm/yargs@17.7.3 Reviewed as an acceptable risk for this PR. yargs is used by swagger2openapi and oas-resolver CLI entrypoints, not by the convertObj library path used here. The flagged one-line CJS bundle is generated build output that reproduces byte-for-byte from the package’s declared upstream source commit. Static review found no dynamic evaluation, process spawning, network access, or filesystem writes in the bundle. The lockfile integrity matches the npm registry, registry signatures verify, npm audit reports no vulnerabilities, and the package has no install lifecycle hooks. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Current generation flow
The finalized OAS2 artifact remains the compatibility source for existing consumers. OAS3 is an additive, generated representation of that same API surface.
Why not generate OAS3 directly from proto?
The current protobuf sources express API documentation primarily through grpc.gateway.protoc_gen_openapiv2.options.* annotations. A native OAS3 generator does not interpret all of that OAS2-specific metadata.
A direct generation candidate was evaluated, but its output materially differed from the current API contract:
Post-processing cannot safely restore metadata that the native generator never emitted. Moving to native proto-to-OAS3 generation therefore requires a separate migration of the protobuf documentation annotations, visibility behavior, response metadata, examples, service merging, and request-body semantics, followed by the same parity validation introduced here.
This PR uses conversion as a compatibility-preserving bridge and does not prevent a future native OAS3 migration.
Compatibility
Maintenance model
Validation
Scope
This PR adds a documentation-oriented OAS3 artifact only. Server/environment metadata, authentication policy, downstream documentation navigation, specification consolidation, and SDK migration are intentionally out of scope.
Follow-ups