Skip to content

Conversation

@curiousleo
Copy link

Fixes #128 and #82.

Changes to make the Kubernetes fixture pass:

  • Ignore $ref declarations that are not strings
  • Allow primitive RPC return types
  • Update Kubernetes proto fixture

Additional changes:

  • Allow primitive RPC request types, for symmetry with the return type change

I'm mostly feeling my way around at this point. I haven't tested the changes other than running go test.

Fixes nytimes#128 and nytimes#82.

Changes:
- Ignore $ref declarations that are not strings (dubious)
- Allow builtins as RPC return types
- Update Kubernetes proto fixture (dubious)
@curiousleo
Copy link
Author

I don't really understand how kubernetes.proto was generated given that openapi2proto previously failed on kubernetes.json. So I'm not sure how valid it is to update kubernetes.proto here.

@curiousleo
Copy link
Author

Feedback welcome. Ping @jprobinson @lestrrat (you commented on #82 and seem to have some context on this).

@curiousleo
Copy link
Author

@jprobinson and @lestrrat seem to have moved on from NYT.

@JustinFullerNYT, do you have enough context on this project to provide feedback on this draft PR?

@JustinFullerNYT
Copy link

@jprobinson and @lestrrat seem to have moved on from NYT.

@JustinFullerNYT, do you have enough context on this project to provide feedback on this draft PR?

I can take a look and recruit some others to look as well!

@tmc
Copy link

tmc commented Apr 18, 2022

@curiousleo / @JustinFullerNYT can we resurrect this?

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.

Failed to transpile Kubernetes swagger.json: "'$ref' key contains non-string element (map[string]interface {})"

3 participants