History

Add bundled Google source flow (#875)

* Add Google multi-service source flow * Add bundled Google source flow * Use typed OpenAPI server objects * Fix Google bundle CI checks

Rhys Sullivan committed 5 months ago

Commit bd61b6e1 parent 314b91624 files · +2112 −293Browse files

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

Unified · Split

2 files
  1. packages/plugins/openapi/src/api/group.ts +4 −0
  2. packages/plugins/openapi/src/api/handlers.ts +1 −0
packages/plugins/openapi/src/api/group.ts+4−0
@@ -37,6 +37,10 @@ const OpenApiSpecInputPayload = Schema.Union([ · 36 unmodified lines
37 Schema.Struct({ kind: Schema.Literal("url"), url: Schema.String }),37 Schema.Struct({ kind: Schema.Literal("url"), url: Schema.String }),
38 Schema.Struct({ kind: Schema.Literal("blob"), value: Schema.String }),38 Schema.Struct({ kind: Schema.Literal("blob"), value: Schema.String }),
39 Schema.Struct({ kind: Schema.Literal("googleDiscovery"), url: Schema.String }),39 Schema.Struct({ kind: Schema.Literal("googleDiscovery"), url: Schema.String }),
40 Schema.Struct({
41 kind: Schema.Literal("googleDiscoveryBundle"),
42 urls: Schema.Array(Schema.String),
43 }),
40]);44]);
41 45
42const PreviewSpecFetchCredentialsPayload = Schema.Struct({46const PreviewSpecFetchCredentialsPayload = Schema.Struct({
packages/plugins/openapi/src/api/handlers.ts+1−0
@@ -97,6 +97,7 @@ export const OpenApiHandlers = HttpApiBuilder.group(ExecutorApiWithOpenApi, "ope · 96 unmodified lines
97 name: source.name,97 name: source.name,
98 config: {98 config: {
99 sourceUrl: source.config.sourceUrl,99 sourceUrl: source.config.sourceUrl,
100 googleDiscoveryUrls: source.config.googleDiscoveryUrls,
100 baseUrl: source.config.baseUrl,101 baseUrl: source.config.baseUrl,
101 namespace: source.config.namespace,102 namespace: source.config.namespace,
102 headers: source.config.headers,103 headers: source.config.headers,