Skip to content

Commit

Permalink
Adding a top level script for generating specs, symlinking the openap…
Browse files Browse the repository at this point in the history
…i yaml and json to top level as well.
  • Loading branch information
mike12345567 committed Mar 1, 2022
1 parent d8b5cae commit d7dbcb2
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 16 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 0 additions & 4 deletions packages/server/specs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions packages/server/specs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 0 additions & 5 deletions packages/server/specs/resources/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
6 changes: 4 additions & 2 deletions packages/server/src/api/controllers/public/mapping/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
}

Expand Down
2 changes: 0 additions & 2 deletions packages/server/src/api/controllers/public/types/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down
1 change: 1 addition & 0 deletions specs/openapi.json
1 change: 1 addition & 0 deletions specs/openapi.yaml

0 comments on commit d7dbcb2

Please sign in to comment.