-
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.
* Add error constants to IR * string -> wire string * Add doc
- Loading branch information
1 parent
ad0f881
commit 1d1a924
Showing
15 changed files
with
87 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file renamed
BIN
+111 KB
...del-npm-0.0.237-8028fcb245-65a74f889c.zip → ...del-npm-0.0.241-b830f65b3a-8098b61521.zip
Binary file not shown.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"organization": "fern", | ||
"version": "0.0.208" | ||
"version": "0.0.211" | ||
} |
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,12 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json | ||
imports: | ||
commons: commons.yml | ||
types: | ||
Constants: | ||
properties: | ||
errors: ErrorConstants | ||
ErrorConstants: | ||
properties: | ||
errorDiscriminant: commons.WireStringWithAllCasings | ||
errorInstanceIdKey: commons.WireStringWithAllCasings | ||
errorContentKey: commons.WireStringWithAllCasings |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
import { Constants } from "@fern-fern/ir-model/constants"; | ||
import { FernConstants } from "@fern-fern/ir-model/ir"; | ||
import { generateWireStringWithAllCasings } from "./utils/generateCasings"; | ||
|
||
export const FERN_CONSTANTS: FernConstants = { | ||
errorDiscriminant: "_error", | ||
errorInstanceIdKey: "_errorInstanceId", | ||
unknownErrorDiscriminantValue: "_unknown", | ||
}; | ||
|
||
export const FERN_CONSTANTS_V2: Constants = { | ||
errors: { | ||
errorDiscriminant: generateWireStringWithAllCasings({ wireValue: "error", name: "error" }), | ||
errorInstanceIdKey: generateWireStringWithAllCasings({ wireValue: "errorInstanceId", name: "errorInstanceId" }), | ||
errorContentKey: generateWireStringWithAllCasings({ wireValue: "content", name: "content" }), | ||
}, | ||
}; |
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
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