-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feature): Importer brings in Websocket Channels from
AsyncAPI
(#3037)
* asyncapi channel creation * persist channel * (feature): spec importer handles creatinga async api channels * add channel converter to openapi-ir-to-fern * add messages * channel schemas properly come through * fix lint
- Loading branch information
Showing
118 changed files
with
1,449 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/cli/openapi-ir-sdk/src/sdk/api/resources/finalIr/types/WebsocketChannel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as FernOpenapiIr from "../../.."; | ||
|
||
export interface WebsocketChannel extends FernOpenapiIr.WithDescription { | ||
path: string; | ||
groupName: FernOpenapiIr.SdkGroupName[]; | ||
summary: string | undefined; | ||
handshake: FernOpenapiIr.WebsocketHandshake; | ||
publish: FernOpenapiIr.Schema | undefined; | ||
subscribe: FernOpenapiIr.Schema | undefined; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/cli/openapi-ir-sdk/src/sdk/api/resources/finalIr/types/WebsocketHandshake.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as FernOpenapiIr from "../../.."; | ||
|
||
export interface WebsocketHandshake { | ||
queryParameters: FernOpenapiIr.QueryParameter[]; | ||
headers: FernOpenapiIr.Header[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ages/cli/openapi-ir-sdk/src/sdk/serialization/resources/finalIr/types/WebsocketChannel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as serializers from "../../.."; | ||
import * as FernOpenapiIr from "../../../../api"; | ||
import * as core from "../../../../core"; | ||
|
||
export const WebsocketChannel: core.serialization.ObjectSchema< | ||
serializers.WebsocketChannel.Raw, | ||
FernOpenapiIr.WebsocketChannel | ||
> = core.serialization | ||
.objectWithoutOptionalProperties({ | ||
path: core.serialization.string(), | ||
groupName: core.serialization.list( | ||
core.serialization.lazy(async () => (await import("../../..")).SdkGroupName) | ||
), | ||
summary: core.serialization.string().optional(), | ||
handshake: core.serialization.lazyObject(async () => (await import("../../..")).WebsocketHandshake), | ||
publish: core.serialization.lazy(async () => (await import("../../..")).Schema).optional(), | ||
subscribe: core.serialization.lazy(async () => (await import("../../..")).Schema).optional(), | ||
}) | ||
.extend(core.serialization.lazyObject(async () => (await import("../../..")).WithDescription)); | ||
|
||
export declare namespace WebsocketChannel { | ||
interface Raw extends serializers.WithDescription.Raw { | ||
path: string; | ||
groupName: serializers.SdkGroupName.Raw[]; | ||
summary?: string | null; | ||
handshake: serializers.WebsocketHandshake.Raw; | ||
publish?: serializers.Schema.Raw | null; | ||
subscribe?: serializers.Schema.Raw | null; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...es/cli/openapi-ir-sdk/src/sdk/serialization/resources/finalIr/types/WebsocketHandshake.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as serializers from "../../.."; | ||
import * as FernOpenapiIr from "../../../../api"; | ||
import * as core from "../../../../core"; | ||
|
||
export const WebsocketHandshake: core.serialization.ObjectSchema< | ||
serializers.WebsocketHandshake.Raw, | ||
FernOpenapiIr.WebsocketHandshake | ||
> = core.serialization.objectWithoutOptionalProperties({ | ||
queryParameters: core.serialization.list( | ||
core.serialization.lazyObject(async () => (await import("../../..")).QueryParameter) | ||
), | ||
headers: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Header)), | ||
}); | ||
|
||
export declare namespace WebsocketHandshake { | ||
interface Raw { | ||
queryParameters: serializers.QueryParameter.Raw[]; | ||
headers: serializers.Header.Raw[]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.