Protobuf -> Open Api Schemas #917
Replies: 2 comments 1 reply
-
Apologies for the delay in replying to your question, @sam-heilbron! I'm not aware of any construct within the protocol buffers spec that would allow us to programmatically determine whether a message should be considered non-exported or not (assuming those are the semantics you are implying here?) Did you have a particular mechanism in mind? The best approach to my mind would be to first import the proto to CUE, then manipulate the CUE AST to remove definitions you do not want, then generate OpenAPI. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#917. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to skip a particular proto message from generating an open api schema?
Beta Was this translation helpful? Give feedback.
All reactions