(title string, description string)
| 6 | ) |
| 7 | |
| 8 | func genOpenAPI3Template(title string, description string) *openapi3.T { |
| 9 | result := new(openapi3.T) |
| 10 | result.OpenAPI = "3.0.1" |
| 11 | result.Info = &openapi3.Info{ |
| 12 | Title: title, |
| 13 | Description: description, |
| 14 | Version: "beta", |
| 15 | } |
| 16 | |
| 17 | result.Components = components |
| 18 | result.Paths = new(openapi3.Paths) |
| 19 | return result |
| 20 | } |
| 21 | |
| 22 | func genOperation(summary string, description string, variables []*ai_api_dto.AiPromptVariable) *openapi3.Operation { |
| 23 | operation := openapi3.NewOperation() |
no outgoing calls