https://github.com/optimizely/eleneor-fern-generator
Optimizely's Fern API which is used to generate SDKs.
https://github.com/optimizely/eleneor-fern-generator
Last synced: 10 months ago
JSON representation
Optimizely's Fern API which is used to generate SDKs.
- Host: GitHub
- URL: https://github.com/optimizely/eleneor-fern-generator
- Owner: optimizely
- Archived: true
- Created: 2023-07-06T19:05:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-31T14:00:34.000Z (over 2 years ago)
- Last Synced: 2025-03-01T12:17:28.837Z (about 1 year ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Optimizely API
Tagging a release on this repository will update the following clients
- [Browser Typescript SDK](https://github.com/optimizely/eleanor-typescript-browser-sdk)
- [Python SDK](https://github.com/optimizely/eleanor-python-sdk)
- [Go SDK](https://github.com/optimizely/eleanor-go-sdk)
- [Java SDK](https://github.com/optimizely/eleanor-java-sdk)
## What is in this repository?
This repository contains
- Eleanor's OpenAPI spec which lives in the [openapi](./fern/api/openapi/) folder
- Generators (see [generators.yml](./fern/api/generators.yml))
To make sure that the OpenAPI is valid, you can use the Fern CLI.
```bash
npm install -g fern-api
fern check
```
## What are generators?
Generators read in your API Definition and output artifacts (e.g. python-sdk, java-sdk, typescript-browser-sdk, go-sdk) and are tracked in [generators.yml](./fern/api/generators.yml).
To trigger the generators run:
```bash
fern generate
fern generate --group publish --version
```
The publish command currently runs in a GitHub workflow (see [ci.yml](.github/workflows/ci.yml)). To trigger the generators using Github Actions:
### 1. Click on Releases

### 2. Click on Draft a new release

### 3. Click on Choose a tag

### 4. Specify a version
This version string is used when publishing SDKs to registries (e.g. npm, maven).

### 5. In the title, re-enter the version number

### 6. Click on Publish release

### 7. Click on Actions
See the Actions that will run `fern generate`.

***