Skip to content

Commit 4716ff5

Browse files
authored
Remove v4 schema (#1385)
Removed a bunch of v4 stuff I started pulling this thread in the olmoasr PR and it was a bit much.
1 parent 5aea0a4 commit 4716ff5

44 files changed

Lines changed: 305 additions & 3434 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
src/api/playgroundApi/playgroundApiSchema.d.ts linguist-generated=true
1+
src/api/playgroundApi/v5playgroundApiSchema.d.ts linguist-generated=true

e2e/olmo.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { firstThreadMessageId, secondThreadMessageId } from '@/mocks/handlers/messageHandlers';
1+
import {
2+
firstThreadMessageId,
3+
secondThreadMessageId,
4+
} from '@/mocks/handlers/responses/basicThreadResponses';
25

36
import { expect, test } from './playwright-utils';
47

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
"build:preview": "run-s build preview",
1111
"build:dev": "vite dev --mode development",
1212
"build-storybook": "storybook build",
13-
"generate-playground-v4api-client": "openapi-typescript --default-non-nullable=false --empty-objects-unknown=true --root-types=true --enum-values=true -t http://localhost:8000/openapi.json -o ./src/api/playgroundApi/playgroundApiSchema.ts",
14-
"generate-playground-v5api-client": "openapi-typescript --default-non-nullable=false --empty-objects-unknown=true --root-types=true --enum-values=true -t http://localhost:8888/openapi.json -o ./src/api/playgroundApi/v5playgroundApiSchema.ts",
15-
"generate-playground-api-client": "run-p generate-playground-v4api-client generate-playground-v5api-client",
16-
"lint-api-schema": "eslint --fix ./src/api/playgroundApi/playgroundApiSchema.ts",
13+
"generate-playground-api-client": "openapi-typescript --default-non-nullable=false --empty-objects-unknown=true --root-types=true --enum-values=true -t http://localhost:8888/openapi.json -o ./src/api/playgroundApi/v5playgroundApiSchema.ts",
14+
"lint-api-schema": "eslint --fix ./src/api/playgroundApi/v5playgroundApiSchema.ts",
1715
"update-api-schema": "run-s generate-playground-api-client lint-api-schema",
1816
"lint": "eslint '**/*.{js,ts,tsx,json}'",
1917
"lint:fix": "eslint '**/*.{js,ts,tsx,json}' --fix && sort-package-json",

src/api/playgroundApi/playgroundApiClient.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)