Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix): ir generation for examples is stable so that ete tests work #4276

Merged
merged 3 commits into from
Aug 12, 2024
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
116 changes: 0 additions & 116 deletions packages/cli/ete-tests/src/tests/add/__snapshots__/add.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -115,119 +115,3 @@ groups:
},
]
`;

exports[`fern add fern add <generator> --group sdk 1`] = `
[
{
"contents": [
{
"contents": [
{
"contents": "name: api
error-discrimination:
strategy: status-code
",
"name": "api.yml",
"type": "file",
},
{
"contents": "# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json

service:
auth: false
base-path: /movies
endpoints:
createMovie:
docs: Add a movie to the database
method: POST
path: /create-movie
request: CreateMovieRequest
response: MovieId

getMovie:
docs: Retrieve a movie from the database based on the ID
method: GET
path: /{id}
path-parameters:
id: MovieId
response: Movie
errors:
- MovieDoesNotExistError
examples:
# Success response
- path-parameters:
id: tt0111161
response:
body:
id: tt0111161
title: The Shawshank Redemption
rating: 9.3
# Error response
- path-parameters:
id: tt1234
response:
error: MovieDoesNotExistError
body: tt1234

types:
MovieId:
type: string
docs: The unique identifier for a Movie in the database

Movie:
properties:
id: MovieId
title: string
rating:
type: double
docs: The rating scale out of ten stars

CreateMovieRequest:
properties:
title: string
rating: double

errors:
MovieDoesNotExistError:
status-code: 404
type: MovieId
",
"name": "imdb.yml",
"type": "file",
},
],
"name": "definition",
"type": "directory",
},
{
"contents": "{
"organization": "fern",
"version": "0.0.0"
}",
"name": "fern.config.json",
"type": "file",
},
{
"contents": "default-group: local
groups:
local:
generators:
- name: fernapi/fern-typescript-node-sdk
version: 0.9.5
output:
location: local-file-system
path: ../sdks/typescript
typescript:
generators:
- name: fernapi/fern-typescript
version: 0.7.2
",
"name": "generators.yml",
"type": "file",
},
],
"name": "fern",
"type": "directory",
},
]
`;
Loading
Loading