-
Notifications
You must be signed in to change notification settings - Fork 1
Refactored the generator into explicit abstractions and typed the JavaScript surface #7
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
Open
Andrzej-Swietek
wants to merge
11
commits into
AVSystem:main
Choose a base branch
from
Andrzej-Swietek:refactor/pipeline-abstractions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2223867
Refactored the generator pipeline into explicit abstractions
4fe8dbc
Converted the build scripts to TypeScript
f0f71dc
Added typecheck and test-target clippy to CI
3598e3b
Pinned every remaining fixture and unified the snapshot manifest
0999e2f
Typed the published runtime and gated it in CI
e60917d
Trimmed every code comment to its contract
ee6f6ef
Parallelised the independent awaits in the browser entry
f89bcc1
Replaced the value-building loops with iterator chains
40d3e65
Fixed the lint job by splitting the fixture-coverage check off the re…
7d19fd5
Renamed the abbreviated modules and bindings and split the long funct…
5c92860
Shortened the doc comments to one sentence and dropped the stale phas…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
__test__/angular-consumer/src/negative-proof/binary-field-rejects-string.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,7 @@ | ||
| // This file is INTENDED TO FAIL TypeScript compilation. | ||
| // It exists so the test suite catches type-soundness regressions | ||
| // (e.g. if a future change accidentally collapses a tagged union to `any`). | ||
| // | ||
| // Expected error: TS2322 — the `kind` literal type 'dog' is not assignable to | ||
| // 'cat', so assigning an object with `kind: 'dog'` to a Cat-typed slot fails. | ||
| // If the union ever degrades to `any`, this assignment would succeed and tsc | ||
| // would exit 0 — causing the negative-compile test to fail and alerting us. | ||
| // Must not compile: a discriminated union keeps its `kind` literal types. | ||
| import type { Cat } from '../../generated/model.generated'; | ||
|
|
||
| // Construct an object whose `kind` discriminant is 'dog', not 'cat'. | ||
| // This is structurally compatible with Cat except for the literal type on `kind`. | ||
| // Structurally a Cat but for the `kind` literal. | ||
| const dogKind = { kind: 'dog' as const, lives: 9 }; | ||
|
|
||
| export const shouldFail: Cat = dogKind; |
12 changes: 2 additions & 10 deletions
12
__test__/angular-consumer/src/negative-proof/validate-rejects-bad-debounce.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 2 additions & 21 deletions
23
__test__/angular-consumer/src/negative-proof/validate-rejects-mismatched-request.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 2 additions & 10 deletions
12
__test__/angular-consumer/src/negative-proof/validate-rejects-mismatched-response.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked 0.0.13: it drops the line/column suffix and also the
field.path:prefix on decode errors.decode_failureabove depends on that prefix to routeduplicate-schema-name, so the pin has two reasons now; worth naming both here.