History

Fix OpenAPI OAuth config compatibility (#848)

Rhys Sullivan committed 6 months ago

Commit 85e677d1 parent 0fd4d114 files · +78 −3Browse files

Showing the changes to packages/plugins/http-source (1 of 4 files). Show all

Unified · Split

packages/plugins/http-source/src/sdk/types.ts+5−2
@@ -1,4 +1,4 @@
1import { Schema } from "effect";1import { Effect, Schema } from "effect";
2 2
3export const HttpCredentialInput = Schema.Union([3export 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),

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t