Replies: 2 comments 3 replies
-
yeah unfortunately still struggling here. Thought I'd try and also add a parameter the "yml" way
compiles but get segmentation violation I'm not sure I'm getting a grip on the whole log/high/porcelain thing |
Beta Was this translation helpful? Give feedback.
-
I've made some great progress based on the help given so far . At least, I think I have. :) Would appreciate some help on a couple of things. In the following code, I want to add a response to an operation. This operation can return one of two models depending on a query parameter (yuck, not my spec!) . I am stuck on #1 how to define a schema of type array
this is the code so far. It generates a response schema for "CubbyholeReadResponse" so everything works except for #1 and #2 |
Beta Was this translation helpful? Give feedback.
-
I have an openApi 3,0 json spec file. Unfortunately one of the paths is missing the request body, so I thought I'd go on a voyage of discovery , learn go and try and use this library to add it ;)
so far, I've managed to read in the json spec, build the v3 model , find the path and get the Post . I was also able to add a "basic" requestBody
and I do indeed get expected data
however, I've now come to a screeching halt. What I want to do is to add a content property similar to this
and to define a model called CubbyholeWriteRequestBody with various properties into the components/schemas tree
some hints and or pointers would be much appreciated.
It may be because of my go noobness that I'm missing something really obvious
Beta Was this translation helpful? Give feedback.
All reactions