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

How to convert OpenAPIv3 schema to .proto? #108

Closed
Ark-kun opened this issue Jan 17, 2019 · 4 comments
Closed

How to convert OpenAPIv3 schema to .proto? #108

Ark-kun opened this issue Jan 17, 2019 · 4 comments

Comments

@Ark-kun
Copy link

Ark-kun commented Jan 17, 2019

I have an OpenAPIv3 schema or JsonSchema.
Can I use gnostic or gnostic-generate to produce equivalent .proto file?

openapi: 3.0.0
info:
  title: Sample API
  version: 0.1.9
paths:
  /pipeline_runs:
    post:
      requestBody:
        content:
          application/json:
            schema:
              $ref: https://raw.githubusercontent.com/kubeflow/pipelines/618b559391a225a6d821141047d6f7438e6f64a1/sdk/python/kfp/components/structures/components.json_schema.json#/definitions/TaskSpec
      responses:
        '200':
          description: Updated
@WilliamWhispell
Copy link

I've just started trying this out... wondering the same thing. I've tried on windows and linux, not seeing a proto file from the json input

@noahdietz
Copy link
Contributor

gnostic does not yet convert OAS documents into .proto representations. But we have a summer project underway to explore this. Thanks for inquiring about this!

@LorenzHW
Copy link
Collaborator

Hello! As part of my GSoC project, I have the privilege to implement this feature under supervision from Tim and Noah. Currently, all the code is maintained here and is in very active development. I'd say that the feature is in a pre-alpha release state and there is probably more that doesn't work than there is that does, but I welcome every kind of contribution (especially issues).

@timburks
Copy link
Contributor

Just to follow up here, @LorenzHW's project is now at https://github.com/googleapis/gnostic-grpc. Thanks @LorenzHW !

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

No branches or pull requests

5 participants