History

Move source auth handling into plugins

Rhys Sullivan committed 7 months ago

Commit db9b84d1 parent 02d549c15 files · +98 −125Browse files

Showing the changes to plugins/openapi/shared (2 of 15 files). Show all

Unified · Split

2 files
  1. plugins/openapi/shared/index.ts +3 −2
  2. plugins/openapi/shared/package.json +1 −0
plugins/openapi/shared/index.ts+3−2
@@ -3,8 +3,9 @@ import * as Schema from "effect/Schema"; · 2 unmodified lines
3import YAML from "yaml";3import YAML from "yaml";
4 4
5import {5import {
6 SecretRefSchema,
6 StringMapSchema,7 StringMapSchema,
7} from "@executor/source-core";8} from "@executor/platform-sdk/schema";
8 9
9export const OpenApiConnectionAuthSchema = Schema.Union(10export const OpenApiConnectionAuthSchema = Schema.Union(
10 Schema.Struct({11 Schema.Struct({
@@ -12,7 +13,7 @@ export const OpenApiConnectionAuthSchema = Schema.Union( · 1 unmodified line
12 }),13 }),
13 Schema.Struct({14 Schema.Struct({
14 kind: Schema.Literal("bearer"),15 kind: Schema.Literal("bearer"),
15 tokenSecretRef: Schema.String,16 tokenSecretRef: SecretRefSchema,
16 }),17 }),
17);18);
18 19
plugins/openapi/shared/package.json+1−0
@@ -12,6 +12,7 @@ · 11 unmodified lines
12 "typecheck": "bunx tsc --noEmit -p tsconfig.json"12 "typecheck": "bunx tsc --noEmit -p tsconfig.json"
13 },13 },
14 "dependencies": {14 "dependencies": {
15 "@executor/platform-sdk": "workspace:*",
15 "@executor/source-core": "workspace:*",16 "@executor/source-core": "workspace:*",
16 "effect": "catalog:",17 "effect": "catalog:",
17 "yaml": "^2.8.1"18 "yaml": "^2.8.1"