Showing the changes to packages/plugins/openapi/src/api (2 of 43 files). Show all
Unified · Split
| @@ -48,14 +48,6 @@ const SlugParams = { · 47 unmodified lines | ||
| 48 | 48 | const OpenApiSpecInputPayload = Schema.Union([ |
| 49 | 49 | Schema.Struct({ kind: Schema.Literal("url"), url: Schema.String }), |
| 50 | 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 | |
| 61 | 53 | const OAuthTemplatePayload = Schema.Struct({ |
| @@ -134,7 +126,6 @@ const IntegrationView = Schema.Struct({ · 72 unmodified lines | ||
| 134 | 126 | // store, and no client reads it (the configure UI only touches the template). |
| 135 | 127 | const OpenApiConfigView = Schema.Struct({ |
| 136 | 128 | sourceUrl: Schema.optional(Schema.String), |
| 137 | − googleDiscoveryUrls: Schema.optional(Schema.Array(Schema.String)), | |
| 138 | 129 | baseUrl: Schema.optional(Schema.String), |
| 139 | 130 | headers: Schema.optional(Schema.Record(Schema.String, Schema.String)), |
| 140 | 131 | queryParams: Schema.optional(Schema.Record(Schema.String, Schema.String)), |
| @@ -91,9 +91,6 @@ export const OpenApiHandlers = HttpApiBuilder.group(ExecutorApiWithOpenApi, "ope · 90 unmodified lines | ||
| 91 | 91 | return config |
| 92 | 92 | ? { |
| 93 | 93 | sourceUrl: config.sourceUrl, |
| 94 | − googleDiscoveryUrls: config.googleDiscoveryUrls | |
| 95 | − ? [...config.googleDiscoveryUrls] | |
| 96 | − : undefined, | |
| 97 | 94 | baseUrl: config.baseUrl, |
| 98 | 95 | headers: config.headers ? { ...config.headers } : undefined, |
| 99 | 96 | queryParams: config.queryParams ? { ...config.queryParams } : undefined, |