Skip to content

Commit

Permalink
Merge branch 'main' into niels/ts/inline-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Swimburger authored Dec 11, 2024
2 parents 655f564 + 7687e8b commit fe3c553
Show file tree
Hide file tree
Showing 1,053 changed files with 106,311 additions and 5,061 deletions.
9 changes: 9 additions & 0 deletions fern/apis/generators-yml/definition/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,15 @@ types:
inline-path-parameters:
type: optional<boolean>
docs: Whether to include path parameters within the generated in-lined request. Defaults to false.
filter:
type: optional<OpenAPIFilterSchema>
docs: Filter to apply to the OpenAPI specification.

OpenAPIFilterSchema:
properties:
endpoints:
docs: Endpoints to include in the generated SDK (e.g. "POST /users").
type: optional<list<string>>

OpenAPISpecSchema:
properties:
Expand Down
6 changes: 2 additions & 4 deletions fern/pages/changelogs/cli/2024-12-09.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
## 0.45.4

- **`(fix):`** Set `inline: true` for inline enums imported from OpenAPI.
- **`(fix):`** Set `inline: true` for maps generated from OpenAPI additionalProperties.
## 0.45.4-rc0
**`(fix):`** The CLI prompts the user to confirm output directory overwrites on fern generate.
4 changes: 4 additions & 0 deletions fern/pages/changelogs/cli/2024-12-10.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 0.45.4-rc1
**`(chore):`** Bumped Java IR to latest (v53)


4 changes: 4 additions & 0 deletions fern/pages/changelogs/cli/2024-12-11.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 0.45.4
**`(fix):`** Defaults are no longer set on datetimes when converting to docs shapes.


15 changes: 15 additions & 0 deletions fern/pages/changelogs/fastapi/2024-12-09.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## 1.6.0
**`(fix):`** The FastAPI generator now supports a new mode for pydantic model generation,
to use pydantic v1 on v2 versions.

```yml generators.yml
generators:
server:
- name: fernapi/fern-fastapi-server
version: 1.6.0
config:
pydantic:
version: "v1_on_v2"
````


4 changes: 4 additions & 0 deletions fern/pages/changelogs/java-model/2024-12-10.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 1.3.0
**`(chore):`** Bump IR version to latest (v53)


5 changes: 5 additions & 0 deletions fern/pages/changelogs/java-sdk/2024-12-10.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 2.4.0
**`(feat):`** We now support overriding sdk package prefixes by adding a "package-prefix" key under the java-sdk generator
configuration.


4 changes: 4 additions & 0 deletions fern/pages/changelogs/java-sdk/2024-12-11.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 2.7.0
**`(feat):`** Apply Content-Type header from endpoint definition in SDK generator.


4 changes: 4 additions & 0 deletions fern/pages/changelogs/java-spring/2024-12-10.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 1.3.0
**`(chore):`** Bump IR version to latest (v53)


2 changes: 1 addition & 1 deletion fern/pages/docs/building-your-docs/custom-css-js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ check out the [Global Configuration](/learn/docs/getting-started/global-configur
Customize the behavior of your Docs site by injecting custom JavaScript globally. Add a `custom.js` file and include it in your `fern/` project:

<CodeBlock title="Add the styles.css file">
<CodeBlock title="Add the custom.js file">
```bash {5}
fern/
├─ openapi/
Expand Down
2 changes: 2 additions & 0 deletions fern/pages/sdks/publish-sdk/publish-your-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ This guide will walk you through how to publish public-facing SDKs through Fern.
```
</CodeBlocks>
Here are the [latest versions of each generator](https://github.com/fern-api/fern?tab=readme-ov-file#-generators).
### Configure `output` location

In order to setup publishing your SDK, you'll need to configure
Expand Down
29 changes: 29 additions & 0 deletions generators-yml.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,25 @@
}
]
},
"generators.OpenAPIFilterSchema": {
"type": "object",
"properties": {
"endpoints": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"generators.OpenAPISettingsSchema": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1344,6 +1363,16 @@
"type": "null"
}
]
},
"filter": {
"oneOf": [
{
"$ref": "#/definitions/generators.OpenAPIFilterSchema"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down
Loading

0 comments on commit fe3c553

Please sign in to comment.