Skip to content

Commit

Permalink
chore(server): upgrade express generator (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Sep 4, 2024
1 parent 5b92886 commit 774b565
Show file tree
Hide file tree
Showing 211 changed files with 2,075 additions and 2,144 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"editor.formatOnSave": true,
"[typescript]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
}
}
File renamed without changes.
16 changes: 16 additions & 0 deletions fern/api/definition/imdb.yml → fern/definition/imdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ types:
properties:
title: string
rating: double
genre: Genre

Genre:
enum:
- value: HORROR
docs: This is for a horror movie
- COMEDY
- name: GREATER_THAN
value: >
service:
auth: false
Expand All @@ -28,6 +37,13 @@ service:
path: /create-movie
request: CreateMovieRequest
response: MovieId
examples:
- request:
title: Goodwill Hunting
genre: COMEDY
rating: 9.5
response:
body: movie_1234083334

getMovie:
method: GET
Expand Down
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": "fern",
"version": "0.6.10"
}
"version": "0.40.4"
}
6 changes: 4 additions & 2 deletions fern/api/generators.yml → fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ groups:
local:
generators:
- name: fernapi/fern-typescript-express
version: 0.5.0-2-g2c802333
version: 0.17.3
output:
location: local-file-system
path: ../../src/api/generated
path: ../src/api/generated
config:
outputSourceFiles: true
17 changes: 0 additions & 17 deletions src/api/generated/api/index.js

This file was deleted.

File renamed without changes.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as errors from "../../../../errors/index";
import express from "express";

export class MovieDoesNotExistError extends errors.FernApiError {
constructor() {
super("MovieDoesNotExistError");
Object.setPrototypeOf(this, MovieDoesNotExistError.prototype);
}

public async send(res: express.Response): Promise<void> {
res.sendStatus(404);
}
}
17 changes: 0 additions & 17 deletions src/api/generated/api/resources/imdb/errors/index.js

This file was deleted.

19 changes: 0 additions & 19 deletions src/api/generated/api/resources/imdb/index.js

This file was deleted.

27 changes: 0 additions & 27 deletions src/api/generated/api/resources/imdb/service/ImdbService.d.ts

This file was deleted.

116 changes: 0 additions & 116 deletions src/api/generated/api/resources/imdb/service/ImdbService.js

This file was deleted.

Loading

0 comments on commit 774b565

Please sign in to comment.