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 | const OpenApiSpecInputPayload = Schema.Union([ | 48 | const 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 | ||
| 61 | const OAuthTemplatePayload = Schema.Struct({ | 53 | const 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). |
| 135 | const OpenApiConfigView = Schema.Struct({ | 127 | const 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)), |
| @@ -91,9 +91,6 @@ export const OpenApiHandlers = HttpApiBuilder.group(ExecutorApiWithOpenApi, "ope · 90 unmodified lines | |||
| 91 | return config | 91 | 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, |