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

Support for OpenAPI 3.0 in Cloud endpoint while using ESP-v2 base image #500

Open
mejuhi opened this issue Apr 9, 2021 · 6 comments
Open
Labels
enhancement New feature or request

Comments

@mejuhi
Copy link

mejuhi commented Apr 9, 2021

We have a requirement where we want to use additional features available in OpenAPI 3.0 but not in OpenAPI 2.0. From the available documentation, it seems like cloud endpoint/ esp-v2 only supports OpenAPI 2.0

We would like to know if there are any plans for supporting OpenAPI 3.0, or its already in development and we will have the support for OpenAPI 3.0 soon.

@qiwzhang
Copy link
Contributor

qiwzhang commented Apr 9, 2021

We don't have plan to support it.

Please see cloudendpoints/esp#446

ESP only uses very basic fields, http_method and path. We don't validate any message fields. We will not use any new features from 3.0. One workaround is you can use 3.0 in other places, but convert your spec to 2.0 for ESP.

@qiwzhang qiwzhang added the enhancement New feature or request label Apr 9, 2021
@nicobao
Copy link

nicobao commented May 28, 2021

@qiwzhang
We are GCP customers.
If we want to use OpenAPI v3 for other purposes, ESP not supporting V3 forces us to generate two OpenAPI docs from our codebase: v2 and v3.
But generating v2 and v3 requires different tools and so it makes things unecessarily complicated.
For example, to generate OpenAPI V2 doc for Google ESP one has to use SpringFox in Java, and to generate OpenApi V3 one has to use spring-docs which are two different librairies...
Your work-around suggestion to generate v2 from v3 doesn't have any official and established solutions.
Would it possible for Google to consider supporting V3?

@qiwzhang
Copy link
Contributor

I linked this request to this issue.

@bhoogter
Copy link

bhoogter commented May 28, 2021

Ridiculous question, but if asking customers to use an automated converter from OAS3.0 down to S2.0 seems like such a good idea, esp considering that the underlying engine only uses minimal fields, then why on Earth can't Google just put an automated transform "under the hood" from 3.0 -> 2.0, where no one knows and no one frankly cares,, and can actually claim some level of OAS3.0 support all the while providing better support for customers? I mean the ticket linked above was opened over three years ago... Wouldn't that better support the customer?

@husseyd
Copy link

husseyd commented Jul 21, 2021

Agree w/above - This is a pretty serious requirement to make both Cloud Endpoints and API Gateway serious options. Apigee X is too heavy for some use cases, and these more managed options are seeming outdated.

@nika-pr
Copy link

nika-pr commented Jun 24, 2024

Has anyone found an elegant solution yet as to how to use OpenAPI documents based on the OpenAPI 3.0 specification on Google Cloud, ideally managed/serverless?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants