-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show error schemas in docs (#3401)
* update openapi-parser * update openapi-ir-to-fern * fix openapi-parser tests * add snaps * add example description * fix error typename * fix tests * restore missing examples * init uploadcare error * fix: add error examples * generate docs
- Loading branch information
1 parent
15e024f
commit 367cc76
Showing
112 changed files
with
228,543 additions
and
9,717 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
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
11 changes: 11 additions & 0 deletions
11
packages/cli/openapi-ir-sdk/src/sdk/api/resources/finalIr/types/ErrorExample.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,11 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as FernOpenapiIr from "../../.."; | ||
|
||
export interface ErrorExample { | ||
name: string | undefined; | ||
description: string | undefined; | ||
example: FernOpenapiIr.FullExample; | ||
} |
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
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
11 changes: 11 additions & 0 deletions
11
packages/cli/openapi-ir-sdk/src/sdk/api/resources/parseIr/types/HttpErrorWithExample.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,11 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as FernOpenapiIr from "../../.."; | ||
|
||
export interface HttpErrorWithExample extends FernOpenapiIr.WithDescription, FernOpenapiIr.WithName { | ||
statusCode: FernOpenapiIr.StatusCode; | ||
schema: FernOpenapiIr.SchemaWithExample; | ||
fullExamples: FernOpenapiIr.NamedFullExample[] | undefined; | ||
} |
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
1 change: 1 addition & 0 deletions
1
packages/cli/openapi-ir-sdk/src/sdk/api/resources/parseIr/types/index.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
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
22 changes: 22 additions & 0 deletions
22
packages/cli/openapi-ir-sdk/src/sdk/serialization/resources/finalIr/types/ErrorExample.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,22 @@ | ||
/** | ||
* 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 ErrorExample: core.serialization.ObjectSchema<serializers.ErrorExample.Raw, FernOpenapiIr.ErrorExample> = | ||
core.serialization.objectWithoutOptionalProperties({ | ||
name: core.serialization.string().optional(), | ||
description: core.serialization.string().optional(), | ||
example: core.serialization.lazy(async () => (await import("../../..")).FullExample), | ||
}); | ||
|
||
export declare namespace ErrorExample { | ||
interface Raw { | ||
name?: string | null; | ||
description?: string | null; | ||
example: serializers.FullExample.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
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
29 changes: 29 additions & 0 deletions
29
.../cli/openapi-ir-sdk/src/sdk/serialization/resources/parseIr/types/HttpErrorWithExample.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,29 @@ | ||
/** | ||
* 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 HttpErrorWithExample: core.serialization.ObjectSchema< | ||
serializers.HttpErrorWithExample.Raw, | ||
FernOpenapiIr.HttpErrorWithExample | ||
> = core.serialization | ||
.objectWithoutOptionalProperties({ | ||
statusCode: core.serialization.lazy(async () => (await import("../../..")).StatusCode), | ||
schema: core.serialization.lazy(async () => (await import("../../..")).SchemaWithExample), | ||
fullExamples: core.serialization | ||
.list(core.serialization.lazyObject(async () => (await import("../../..")).NamedFullExample)) | ||
.optional(), | ||
}) | ||
.extend(core.serialization.lazyObject(async () => (await import("../../..")).WithDescription)) | ||
.extend(core.serialization.lazyObject(async () => (await import("../../..")).WithName)); | ||
|
||
export declare namespace HttpErrorWithExample { | ||
interface Raw extends serializers.WithDescription.Raw, serializers.WithName.Raw { | ||
statusCode: serializers.StatusCode.Raw; | ||
schema: serializers.SchemaWithExample.Raw; | ||
fullExamples?: serializers.NamedFullExample.Raw[] | null; | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
packages/cli/openapi-ir-sdk/src/sdk/serialization/resources/parseIr/types/index.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
Oops, something went wrong.