-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7,612 changed files
with
272,977 additions
and
231,886 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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,5 @@ | ||
## 0.43.8 | ||
**`(fix):`** Any markdown files that have custom components are also pushed up to the Fern Docs | ||
platform. | ||
|
||
|
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,7 @@ | ||
## 0.44.0-rc0 | ||
**`(feat):`** The Fern CLI now supports parsing [Conjure](https://github.com/palantir/conjure), Palantir's | ||
home-grown API Definition format. | ||
|
||
If you know a company that is using Conjure that wants API Docs + SDKs, send them our way! | ||
|
||
|
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,3 @@ | ||
## 0.27.0 | ||
**`(feat):`** Add support for SSE (Server-Sent Events) streaming responses. The user-facing interface for streaming responses remains the same between standard HTTP streaming and SSE. | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## 0.1.3 | ||
**`(feat):`** Support inheritance for types and inlined requests. | ||
|
||
**`(feat):`** Support undiscriminated unions. | ||
|
||
**`(fix):`** Fix ci.yml `php-version` field name. | ||
|
||
**`(feat):`** We now allow an empty constructor on types with no required properties. | ||
|
73 changes: 73 additions & 0 deletions
73
fern/pages/sdks/getting-started/preview-your-sdk-locally.mdx
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,73 @@ | ||
--- | ||
title: Preview your SDK | ||
subtitle: Use Fern's CLI tool to preview your SDK locally. | ||
--- | ||
|
||
[Once you configure your SDK](/learn/sdks/getting-started/generate-your-first-sdk), you can preview the generated SDK code using Fern's CLI. | ||
|
||
Simply append the `--preview` flag to the command used to generate the SDK and you will see the generated code populated in a `.preview` folder within your `fern` folder. | ||
|
||
<Tip title="Custom Code"> | ||
[If you have added custom code to your SDK](/learn/sdks/features/augment-with-custom-code), `--preview` will preserve those changes. | ||
</Tip> | ||
|
||
Here's an example of how you can preview your SDK: | ||
|
||
<Steps> | ||
### Generator configuration | ||
```yaml generators.yml | ||
api: | ||
path: ./path/to/openapi.yml | ||
groups: | ||
python-sdk: | ||
generators: | ||
- name: fernapi/fern-python-sdk | ||
version: 3.0.0 | ||
output: | ||
location: pypi | ||
package-name: imdb | ||
token: ${PYPI_TOKEN} | ||
github: | ||
repository: imdb/imdb-python | ||
config: | ||
client_class_name: imdb | ||
``` | ||
### Invoke the Fern CLI | ||
```shell | ||
fern generate --group python-sdk --preview | ||
``` | ||
|
||
### Preview your SDK | ||
|
||
The resulting folder structure will look like this: | ||
|
||
<Tabs> | ||
<Tab title="OpenAPI"> | ||
```shell {3-5} | ||
fern/ | ||
├─ fern.config.json | ||
├─ .preview/ | ||
└─ fern-python-sdk/ | ||
└─ ... | ||
├─ generators.yml | ||
└─ openapi/ | ||
└─ openapi.yml | ||
``` | ||
</Tab> | ||
<Tab title="Fern Definition"> | ||
```shell {3-5} | ||
fern/ | ||
├─ fern.config.json | ||
├─ .preview/ | ||
└─ fern-python-sdk/ | ||
└─ ... | ||
├─ generators.yml | ||
└─ definition/ | ||
├─ api.yml | ||
└─ imdb.yml | ||
``` | ||
</Tab> | ||
</Tabs> | ||
</Steps> |
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,34 +1,43 @@ | ||
export enum AsIsFiles { | ||
BaseApiRequest = "BaseApiRequest.Template.php", | ||
ClientOptions = "ClientOptions.Template.php", | ||
GitIgnore = ".gitignore", | ||
// Top-level files. | ||
GithubCiYml = "github-ci.yml", | ||
HttpMethod = "HttpMethod.Template.php", | ||
JsonApiRequest = "JsonApiRequest.Template.php", | ||
GitIgnore = ".gitignore", | ||
PhpStanNeon = "phpstan.neon", | ||
PhpUnitXml = "phpunit.xml", | ||
RawClient = "RawClient.Template.php", | ||
RawClientTest = "RawClientTest.Template.php", | ||
DateArrayTypeTest = "DateArrayTypeTest.Template.php", | ||
EmptyArraysTest = "EmptyArraysTest.Template.php", | ||
InvalidTypesTest = "InvalidTypesTest.Template.php", | ||
MixedDateArrayTypeTest = "MixedDateArrayTypeTest.Template.php", | ||
NestedUnionArrayTypeTest = "NestedUnionArrayTypeTest.Template.php", | ||
NullableArrayTypeTest = "NullableArrayTypeTest.Template.php", | ||
NullPropertyTypeTest = "NullPropertyTypeTest.Template.php", | ||
ScalarTypesTest = "ScalarTypesTest.Template.php", | ||
EnumTest = "EnumTest.Template.php", | ||
TestTypeTest = "TestTypeTest.Template.php", | ||
UnionArrayTypeTest = "UnionArrayTypeTest.Template.php", | ||
ArrayType = "ArrayType.Template.php", | ||
Constant = "Constant.Template.php", | ||
DateType = "DateType.Template.php", | ||
JsonProperty = "JsonProperty.Template.php", | ||
SerializableType = "SerializableType.Template.php", | ||
Union = "Union.Template.php", | ||
JsonDecoder = "JsonDecoder.Template.php", | ||
JsonDeserializer = "JsonDeserializer.Template.php", | ||
JsonEncoder = "JsonEncoder.Template.php", | ||
JsonSerializer = "JsonSerializer.Template.php", | ||
Utils = "Utils.Template.php" | ||
|
||
// Core/Client files. | ||
BaseApiRequest = "Client/BaseApiRequest.Template.php", | ||
HttpMethod = "Client/HttpMethod.Template.php", | ||
RawClient = "Client/RawClient.Template.php", | ||
RawClientTest = "Client/RawClientTest.Template.php", | ||
|
||
// Core/Json files. | ||
JsonApiRequest = "Json/JsonApiRequest.Template.php", | ||
JsonDecoder = "Json/JsonDecoder.Template.php", | ||
JsonDeserializer = "Json/JsonDeserializer.Template.php", | ||
JsonEncoder = "Json/JsonEncoder.Template.php", | ||
JsonProperty = "Json/JsonProperty.Template.php", | ||
JsonSerializer = "Json/JsonSerializer.Template.php", | ||
JsonSerializableType = "Json/JsonSerializableType.Template.php", | ||
Utils = "Json/Utils.Template.php", | ||
|
||
// Tests/Core/Json files. | ||
DateArrayTest = "Json/DateArrayTest.Template.php", | ||
EmptyArrayTest = "Json/EmptyArrayTest.Template.php", | ||
EnumTest = "Json/EnumTest.Template.php", | ||
ExhaustiveTest = "Json/ExhaustiveTest.Template.php", | ||
InvalidTest = "Json/InvalidTest.Template.php", | ||
NestedUnionArrayTest = "Json/NestedUnionArrayTest.Template.php", | ||
NullableArrayTest = "Json/NullableArrayTest.Template.php", | ||
NullPropertyTest = "Json/NullPropertyTest.Template.php", | ||
ScalarTypesTest = "Json/ScalarTest.Template.php", | ||
TraitTest = "Json/TraitTest.Template.php", | ||
UnionArrayTest = "Json/UnionArrayTest.Template.php", | ||
UnionPropertyTest = "Json/UnionPropertyTest.Template.php", | ||
|
||
// Core/Types files. | ||
ArrayType = "Types/ArrayType.Template.php", | ||
Constant = "Types/Constant.Template.php", | ||
Date = "Types/Date.Template.php", | ||
Union = "Types/Union.Template.php" | ||
} |
File renamed without changes.
File renamed without changes.
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
55 changes: 0 additions & 55 deletions
55
generators/php/codegen/src/asIs/DateArrayTypeTest.Template.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.