Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl: start on OpenAPI prototype #59

Merged
merged 7 commits into from
Nov 1, 2024

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Oct 31, 2024

While we prefer protos as an input into the generator, we want to prototype
using OpenAPI as an alternative input. This PR introduces a new "translator"
for OpenAPI, a rough implementation for messages and field, and some initial
tests.

While we prefer protos as an input into the generator, we want to prototype
using OpenAPI as an alternative input. This PR introduces a new "translator"
for OpenAPI, a rough implementation for messages and field, and some initial
tests.
@coryan coryan marked this pull request as ready for review October 31, 2024 21:02
generator/cmd/openapi-gen-gclient/main.go Outdated Show resolved Hide resolved
generator/cmd/openapi-gen-gclient/main.go Outdated Show resolved Hide resolved
generator/cmd/openapi-gen-gclient/main.go Outdated Show resolved Hide resolved
@@ -0,0 +1,75 @@
// Copyright 2024 Google LLC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that you can just name this file cmd/openapi to simplify, since this is just a regular command

generator/cmd/openapi-gen-gclient/main.go Outdated Show resolved Hide resolved
generator/internal/genclient/translator/openapi/openapi.go Outdated Show resolved Hide resolved
generator/internal/genclient/translator/openapi/openapi.go Outdated Show resolved Hide resolved
generator/internal/genclient/translator/openapi/openapi.go Outdated Show resolved Hide resolved
generator/internal/genclient/translator/openapi/openapi.go Outdated Show resolved Hide resolved
@coryan coryan merged commit 50e6835 into googleapis:main Nov 1, 2024
9 checks passed
@coryan coryan deleted the prototype-openapi-input branch November 1, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants