Bug/make swagger json output openapi 3 compliant (#2219)

update source to ensure swagger.json is openapi 3.0.0 compliant
This commit is contained in:
Mr Simon C
2024-09-04 23:40:24 +01:00
committed by GitHub
parent 5c40419a27
commit 7594841dac
7 changed files with 18 additions and 52 deletions

View File

@@ -36,7 +36,6 @@ function apiWorkspaceThreadEndpoints(app) {
#swagger.requestBody = {
description: 'Optional userId associated with the thread',
required: false,
type: 'object',
content: {
"application/json": {
example: {
@@ -125,7 +124,6 @@ function apiWorkspaceThreadEndpoints(app) {
#swagger.requestBody = {
description: 'JSON object containing new name to update the thread.',
required: true,
type: 'object',
content: {
"application/json": {
example: {
@@ -336,7 +334,6 @@ function apiWorkspaceThreadEndpoints(app) {
#swagger.requestBody = {
description: 'Send a prompt to the workspace thread and the type of conversation (query or chat).',
required: true,
type: 'object',
content: {
"application/json": {
example: {
@@ -462,7 +459,6 @@ function apiWorkspaceThreadEndpoints(app) {
#swagger.requestBody = {
description: 'Send a prompt to the workspace thread and the type of conversation (query or chat).',
required: true,
type: 'object',
content: {
"application/json": {
example: {
@@ -478,6 +474,9 @@ function apiWorkspaceThreadEndpoints(app) {
"text/event-stream": {
schema: {
type: 'array',
items: {
type: 'string',
},
example: [
{
id: 'uuid-123',