History

Move Google discovery ownership out of OpenAPI

Rhys Sullivan committed 4 months ago

Commit ba657e31 parent ecf7b3d43 files · +2209 −2876Browse files

Showing the changes to packages/plugins/openapi/src/api (2 of 43 files). Show all

Unified · Split

2 files
  1. packages/plugins/openapi/src/api/group.ts +0 −9
  2. packages/plugins/openapi/src/api/handlers.ts +0 −3
packages/plugins/openapi/src/api/group.ts+0−9
@@ -48,14 +48,6 @@ const SlugParams = { · 47 unmodified lines
48const OpenApiSpecInputPayload = Schema.Union([48const OpenApiSpecInputPayload = Schema.Union([
49 Schema.Struct({ kind: Schema.Literal("url"), url: Schema.String }),49 Schema.Struct({ kind: Schema.Literal("url"), url: Schema.String }),
50 Schema.Struct({ kind: Schema.Literal("blob"), value: Schema.String }),50 Schema.Struct({ kind: Schema.Literal("blob"), value: Schema.String }),
51 Schema.Struct({
52 kind: Schema.Literal("googleDiscovery"),
53 url: Schema.String,
54 }),
55 Schema.Struct({
56 kind: Schema.Literal("googleDiscoveryBundle"),
57 urls: Schema.Array(Schema.String),
58 }),
59]);51]);
60 52
61const OAuthTemplatePayload = Schema.Struct({53const OAuthTemplatePayload = Schema.Struct({
@@ -134,7 +126,6 @@ const IntegrationView = Schema.Struct({ · 72 unmodified lines
134// store, and no client reads it (the configure UI only touches the template).126// store, and no client reads it (the configure UI only touches the template).
135const OpenApiConfigView = Schema.Struct({127const OpenApiConfigView = Schema.Struct({
136 sourceUrl: Schema.optional(Schema.String),128 sourceUrl: Schema.optional(Schema.String),
137 googleDiscoveryUrls: Schema.optional(Schema.Array(Schema.String)),
138 baseUrl: Schema.optional(Schema.String),129 baseUrl: Schema.optional(Schema.String),
139 headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),130 headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
140 queryParams: Schema.optional(Schema.Record(Schema.String, Schema.String)),131 queryParams: Schema.optional(Schema.Record(Schema.String, Schema.String)),
packages/plugins/openapi/src/api/handlers.ts+0−3
@@ -91,9 +91,6 @@ export const OpenApiHandlers = HttpApiBuilder.group(ExecutorApiWithOpenApi, "ope · 90 unmodified lines
91 return config91 return config
92 ? {92 ? {
93 sourceUrl: config.sourceUrl,93 sourceUrl: config.sourceUrl,
94 googleDiscoveryUrls: config.googleDiscoveryUrls
95 ? [...config.googleDiscoveryUrls]
96 : undefined,
97 baseUrl: config.baseUrl,94 baseUrl: config.baseUrl,
98 headers: config.headers ? { ...config.headers } : undefined,95 headers: config.headers ? { ...config.headers } : undefined,
99 queryParams: config.queryParams ? { ...config.queryParams } : undefined,96 queryParams: config.queryParams ? { ...config.queryParams } : undefined,