From c2de27fdd86b8d905389af6f1c665dede6ed7b56 Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Wed, 9 Jul 2025 12:52:27 -0400 Subject: [PATCH] add java config doc --- .../sdks/overview/java/configuration.mdx | 80 ++++++++++++++++++- 1 file changed, 78 insertions(+), 2 deletions(-) diff --git a/fern/products/sdks/overview/java/configuration.mdx b/fern/products/sdks/overview/java/configuration.mdx index 1cd0e9d1b..bc4440483 100644 --- a/fern/products/sdks/overview/java/configuration.mdx +++ b/fern/products/sdks/overview/java/configuration.mdx @@ -2,7 +2,83 @@ title: Java Configuration description: Configuration options for the Fern Java SDK. --- +You can customize the behavior of the Java SDK generator in `generators.yml`: -# Java Configuration +```yaml {7-9} +default-group: local +groups: + local: + generators: + - name: fernapi/fern-java-sdk + version: + config: + client_class_name: YourApiClient +``` -Discover how to configure the Fern Java SDK for your project. \ No newline at end of file +## SDK Configuration Options + + + +The provided string will be used as the client class name. + + + + + + + + + + +Example: + + ```yaml + custom-dependencies: + - "implementation com.foo:bar:0.0.0" + - "testImplementation com.foo:bar:0.0.0" + - "api com.foo:bar:0.0.0" + ``` + + + + + + + + + + + When enabled, generates wrapper types for each alias to increase type-safety. +For example, if you have an alias `ResourceId: string` then if this is true, the +generator will generate a `ResourceId.java` file. If false, it will just treat it +as `java.util.String`. + + + + + + + + + + + + + +When enabled, generates public constructors for model types. + + + + + + + + + + + + + + + +