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 | export const HttpCredentialInput = Schema.Union([ | 3 | export const HttpCredentialInput = Schema.Union([ |
| 4 | Schema.String, | 4 | Schema.String, |
| @@ -37,7 +37,10 @@ export const OAuth2SourceConfig = Schema.Struct({ · 32 unmodified lines | |||
| 37 | securitySchemeName: Schema.String, | 37 | securitySchemeName: Schema.String, |
| 38 | flow: OAuth2Flow, | 38 | flow: OAuth2Flow, |
| 39 | tokenUrl: Schema.String, | 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 | issuerUrl: Schema.optional(Schema.NullOr(Schema.String)), | 44 | issuerUrl: Schema.optional(Schema.NullOr(Schema.String)), |
| 42 | clientIdSlot: Schema.String, | 45 | clientIdSlot: Schema.String, |
| 43 | clientSecretSlot: Schema.NullOr(Schema.String), | 46 | clientSecretSlot: Schema.NullOr(Schema.String), |