Skip to content

Commit

Permalink
(fix): ir generation for examples is stable so that ete tests work (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Aug 12, 2024
1 parent b0199f5 commit 9288c43
Show file tree
Hide file tree
Showing 57 changed files with 83 additions and 109,290 deletions.
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

0 comments on commit 9288c43

Please sign in to comment.