Showing the changes to packages/plugins/http-source/src (1 of 4 files). Show all
Unified · Split
| @@ -1,4 +1,4 @@ | ||
| 1 | −import { Schema } from "effect"; | |
| 1 | +import { Effect, Schema } from "effect"; | |
| 2 | 2 | |
| 3 | 3 | export const HttpCredentialInput = Schema.Union([ |
| 4 | 4 | Schema.String, |
| @@ -37,7 +37,10 @@ export const OAuth2SourceConfig = Schema.Struct({ · 32 unmodified lines | ||
| 37 | 37 | securitySchemeName: Schema.String, |
| 38 | 38 | flow: OAuth2Flow, |
| 39 | 39 | tokenUrl: Schema.String, |
| 40 | − authorizationUrl: Schema.NullOr(Schema.String), | |
| 40 | + authorizationUrl: Schema.NullOr(Schema.String).pipe( | |
| 41 | + Schema.optional, | |
| 42 | + Schema.withDecodingDefault(Effect.succeed(null)), | |
| 43 | + ), | |
| 41 | 44 | issuerUrl: Schema.optional(Schema.NullOr(Schema.String)), |
| 42 | 45 | clientIdSlot: Schema.String, |
| 43 | 46 | clientSecretSlot: Schema.NullOr(Schema.String), |