diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 3988b08f..8d0b0a53 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -47,7 +47,6 @@ jobs: context: project/server platforms: linux/amd64,linux/arm64 build-contexts: | - client=project/client schema=schema sqlc-plugin=tool/sqlc-generate-typescript-plugin/target/wasm32-wasip1/release push: true diff --git a/.github/workflows/deploy_sw.yml b/.github/workflows/deploy_sw.yml index 5954463d..7989375f 100644 --- a/.github/workflows/deploy_sw.yml +++ b/.github/workflows/deploy_sw.yml @@ -94,7 +94,6 @@ jobs: with: context: project/server build-contexts: | - client=project/client schema=schema sqlc-plugin=tool/sqlc-generate-typescript-plugin/target/wasm32-wasip1/release platforms: linux/amd64,linux/arm64 diff --git a/project/server/src/layer/scheduler/scheduled/derive/device.controller.ts b/project/server/src/layer/scheduler/scheduled/derive/device.controller.ts index ff11aadf..791d6b86 100644 --- a/project/server/src/layer/scheduler/scheduled/derive/device.controller.ts +++ b/project/server/src/layer/scheduler/scheduled/derive/device.controller.ts @@ -291,7 +291,8 @@ export class ControllerSchedulerScheduledDeriveDevice { code: 200, body: mapped, contentType: "application/json", - headers: { + headers: { + "access-control-expose-headers": "content-range, link", "cache-control": "max-age=1800", ...paginated.headers, }, diff --git a/schema/spec/main.yaml b/schema/spec/main.yaml index ab128878..5433eaec 100644 --- a/schema/spec/main.yaml +++ b/schema/spec/main.yaml @@ -248,8 +248,9 @@ paths: headers: access-control-expose-headers: required: true - type: string - const: content-range, link + schema: + type: string + const: content-range, link link: $ref: "snippet.yaml#/SnippetPaginationLink" content-range: