Adding a top level script for generating specs, symlinking the openapi yaml and json to top level as well.

This commit is contained in:
mike12345567 2022-03-01 18:42:52 +00:00
parent d8b5cae569
commit d7dbcb2175
8 changed files with 7 additions and 16 deletions

View File

@ -44,6 +44,7 @@
"lint:fix": "yarn run lint:fix:ts && yarn run lint:fix:prettier && yarn run lint:fix:eslint",
"test:e2e": "lerna run cy:test --stream",
"test:e2e:ci": "lerna run cy:ci --stream",
"build:specs": "lerna run specs",
"build:docker": "lerna run build:docker && npm run build:docker:proxy:compose && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh $BUDIBASE_RELEASE_VERSION && cd -",
"build:docker:proxy": "docker build hosting/proxy -t proxy-service",
"build:docker:proxy:compose": "lerna run generate:proxy:compose && npm run build:docker:proxy",

View File

@ -1049,10 +1049,6 @@
}
}
},
"info": {
"description": "Extra info from the query in a key-value map, like response times.",
"type": "object"
},
"pagination": {
"description": "If pagination is supported, this will contain the bookmark/anchor information for it.",
"type": "object"

View File

@ -762,9 +762,6 @@ components:
raw:
description: The raw query response, as a string.
type: string
info:
description: Extra info from the query in a key-value map, like response times.
type: object
pagination:
description: If pagination is supported, this will contain the bookmark/anchor
information for it.

View File

@ -163,11 +163,6 @@ const executeQueryOutputSchema = object(
},
},
},
info: {
description:
"Extra info from the query in a key-value map, like response times.",
type: "object",
},
pagination: {
description:
"If pagination is supported, this will contain the bookmark/anchor information for it.",

View File

@ -26,8 +26,10 @@ function mapQueryExecution(ctx: any): ExecuteQueryOutput {
return {
data: ctx.body.data,
pagination: ctx.body.pagination,
extra: ctx.body.extra,
info: ctx.body.info,
extra: {
raw: ctx.body.raw,
headers: ctx.body.headers,
},
}
}

View File

@ -850,8 +850,6 @@ export interface components {
/** @description The raw query response, as a string. */
raw?: string
}
/** @description Extra info from the query in a key-value map, like response times. */
info?: { [key: string]: unknown }
/** @description If pagination is supported, this will contain the bookmark/anchor information for it. */
pagination?: { [key: string]: unknown }
}

1
specs/openapi.json Symbolic link
View File

@ -0,0 +1 @@
../packages/server/specs/openapi.json

1
specs/openapi.yaml Symbolic link
View File

@ -0,0 +1 @@
../packages/server/specs/openapi.yaml