Adding a top level script for generating specs, symlinking the openapi yaml and json to top level as well.
This commit is contained in:
parent
d8b5cae569
commit
d7dbcb2175
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.",
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 }
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../packages/server/specs/openapi.json
|
|
@ -0,0 +1 @@
|
|||
../packages/server/specs/openapi.yaml
|
Loading…
Reference in New Issue