Skip to content

Commit 023f8b7

Browse files
authored
Merge origin/main: preserve openApiDocument-to-Context feature alongside ScenarioRegistry
2 parents bbe62d6 + 4a7a901 commit 023f8b7

114 files changed

Lines changed: 5924 additions & 1762 deletions

File tree

Some content is hidden

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

.changeset/add-config-file.md

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

.changeset/add-internal-jsdocs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"counterfact": patch
3+
---
4+
5+
Add JSDoc comments throughout the codebase, covering all major classes, functions, and interfaces in `src/server/`, `src/typescript-generator/`, `src/repl/`, and `src/util/`.

.changeset/afraid-pens-remain.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"counterfact": patch
3+
---
4+
5+
Make the hexagon in the REPL prompt the same shade of blue as the logo (#0071b5).

.changeset/document-usage-patterns.md

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

.changeset/fix-no-body-response-type-error.md

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

.changeset/giant-drinks-joke.md

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

.changeset/more-usage-patterns.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"counterfact": patch
3+
---
4+
5+
Moved `openapi-example.yaml` from the repository root into `test/fixtures/openapi-example.yaml` and expanded it with many OpenAPI edge cases: CRUD operations on `/users` and `/users/{userId}`, polymorphic events via `oneOf`/`allOf`/`discriminator`, nullable fields, enum types, integer formats, file upload via `multipart/form-data`, cookie parameters, deprecated endpoints, multiple response content types, a no-body `204` health-check endpoint, and free-form `additionalProperties` objects.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"counterfact": minor
3+
---
4+
5+
Refactor `OpenApiDocument` from a plain interface into a class.
6+
7+
`OpenApiDocument` now extends `EventTarget` and manages its own lifecycle:
8+
9+
- `new OpenApiDocument(source)` — create an instance pointing at a local path or URL
10+
- `await document.load()` — read and parse the file, populating `paths`, `basePath`, and `produces`
11+
- `await document.watch()` — start watching the source file; dispatches a `"reload"` event whenever the file changes on disk
12+
- `await document.stopWatching()` — stop the file watcher
13+
14+
The separate `OpenApiWatcher` class has been removed; its behaviour is now built into `OpenApiDocument`.

0 commit comments

Comments
 (0)