* Add Google multi-service source flow * Add bundled Google source flow * Use typed OpenAPI server objects * Fix Google bundle CI checks
Showing the changes to packages/plugins/openapi/src/api (2 of 24 files). Show all
Unified · Split
| @@ -37,6 +37,10 @@ const OpenApiSpecInputPayload = Schema.Union([ · 36 unmodified lines | ||
| 37 | 37 | Schema.Struct({ kind: Schema.Literal("url"), url: Schema.String }), |
| 38 | 38 | Schema.Struct({ kind: Schema.Literal("blob"), value: Schema.String }), |
| 39 | 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 | |
| 42 | 46 | const PreviewSpecFetchCredentialsPayload = Schema.Struct({ |
| @@ -97,6 +97,7 @@ export const OpenApiHandlers = HttpApiBuilder.group(ExecutorApiWithOpenApi, "ope · 96 unmodified lines | ||
| 97 | 97 | name: source.name, |
| 98 | 98 | config: { |
| 99 | 99 | sourceUrl: source.config.sourceUrl, |
| 100 | + googleDiscoveryUrls: source.config.googleDiscoveryUrls, | |
| 100 | 101 | baseUrl: source.config.baseUrl, |
| 101 | 102 | namespace: source.config.namespace, |
| 102 | 103 | headers: source.config.headers, |