Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/preview_sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,31 @@ jobs:
cd fern/.preview/fern-typescript-node-sdk
yarn install
yarn build

preview-java:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: "11"
architecture: x64

- name: Download Fern
run: npm install -g fern-api

- name: Generate Preview
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
fern generate --group java-sdk --preview --log-level debug

- name: Build
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
cd fern/.preview/fern-java-sdk
./gradlew assemble
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does assemble also call compileJava ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes! it's all of:
":compileJava
:processResources
:classes
:jar
:javadoc
:javadocJar
:sourcesJar
:assemble"

4 changes: 2 additions & 2 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "intercom",
"version": "0.53.17"
}
"version": "0.56.19"
}
18 changes: 18 additions & 0 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,21 @@ groups:
- intercom
- api
smart-casing: true

java-sdk:
generators:
- name: fernapi/fern-java-sdk
version: 2.25.0
# output:
# location: maven
# coordinate: com.square:square-java
# username: ${MAVEN_USERNAME}
# password: ${MAVEN_PASSWORD}
github:
repository: fern-demo/intercom-java-sdk
branch: gettin-tests-to-work
mode: push
config:
enable-inline-types: true
client-class-name: Intercom
inline-path-parameters: true
54 changes: 50 additions & 4 deletions fern/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1383,10 +1383,11 @@ components:
enum:
- contact
avatar:
properties:
type:
enum:
- avatar
properties: null
type: string
format: uri
description: An image URL containing the avatar of a contact.
example: https://example.org/128Wash.jpg
create_article_request:
properties:
parent_type:
Expand Down Expand Up @@ -1465,6 +1466,51 @@ components:
custom_attributes:
additionalProperties: true

# adding offset pages
offset_pages:
title: Offset based pages
type: object
properties:
type:
type: string
description: the type of object `offset_pages`
example: offset_pages
enum:
- offset_pages
page:
type: integer
description: The current offset
example: 1
next:
type: string
nullable: true
per_page:
type: integer
description: Number of results per page
example: 2
total_pages:
type: integer
description: Total number of pages
example: 13
required:
- type
collection_list:
properties:
pages:
"$ref": "#/components/schemas/offset_pages"
article_list:
properties:
pages:
"$ref": "#components/schemas/offset_pages"
company_list:
properties:
pages:
"$ref": "#/components/schemas/offset_pages"
note_list:
properties:
pages:
"$ref": "#/components/schemas/offset_pages"

securitySchemes:
bearerAuth:
x-fern-bearer:
Expand Down