[go: up one dir, main page]

Skip to content

Vellum’s Fern API which is used to generate SDKs.

Notifications You must be signed in to change notification settings

zachkirsch/vellum-client-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vellum API

Tagging a release on this repository will update the following clients:

What is in this repository?

This repository contains

What is in the API Definition?

The API Definition contains an OpenAPI Specification adapted to be compatible with Fern.

To make sure that the definition is valid, you can use the Fern CLI.

npm install -g fern-api # Installs CLI
fern check # Checks if the definition is valid

What are generators?

Generators read in your API Definition and output artifacts (e.g. the TypeScript SDK Generator) and are tracked in generators.yml.

To trigger the generators run:

# output generated files locally
fern generate

# publish generated files
fern generate --group publish --version <version>

The publish command currently runs in a GitHub workflow (see ci.yml)

Publishing new client versions

Here are the steps required to publish a new version of our API clients.

  1. cd into the django directory from within the main vellum repo
  2. Run make generate-swagger-api-client
  3. Open the generated schema_api_client_v1.yaml file
  4. Copy the contents of the file and paste it into the definition within this repo: fern/api/openai/openapi.yaml
  5. Check the diff and selectively add everything except for deletions to server. These were manually added. Note: We should automate the step of adding server related info back as part of make generate-swagger-api-client.
  6. Run fern check to make sure all is good.
  7. Optionally run fern generate to see the newly generated clients locally.
  8. Commit and push the changes to the main branch.
  9. Create a new Release within Github. This will trigger a github action that will publish the new clients to their respective repos.

About

Vellum’s Fern API which is used to generate SDKs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •