()
| 46 | } |
| 47 | |
| 48 | func genResponse() *openapi3.ResponseRef { |
| 49 | response := openapi3.NewResponse() |
| 50 | response.Content = openapi3.NewContentWithJSONSchemaRef(responseSchemaRef) |
| 51 | description := "Response from the server" |
| 52 | response.Description = &description |
| 53 | return &openapi3.ResponseRef{ |
| 54 | Value: response, |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func genRequestBodySchema(variables []*ai_api_dto.AiPromptVariable) *openapi3.Schema { |
| 59 | result := openapi3.NewObjectSchema() |