Skip to content
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

Implement discriminator of models #3599

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b7a391a
remove the link temporarily
ArcturusZhang Jul 2, 2024
8180b12
add a step to build the test project
ArcturusZhang Jul 2, 2024
9d534d8
fix the base type issue
ArcturusZhang Jul 2, 2024
f1b692d
fix issues
ArcturusZhang Jul 2, 2024
ec92093
Merge branch 'main' into fix-base-type-issue
ArcturusZhang Jul 3, 2024
2afcc7b
Merge branch 'main' into remove-the-link-to-make-the-project-build
ArcturusZhang Jul 3, 2024
3504d18
update the base ctor
ArcturusZhang Jul 3, 2024
ca1e5b9
fix the deserialization static method issue
ArcturusZhang Jul 3, 2024
942f936
refactor
ArcturusZhang Jul 3, 2024
65ebb99
fix typo
ArcturusZhang Jul 3, 2024
a649a22
add the link back
ArcturusZhang Jul 3, 2024
a9a84f7
fix typo
ArcturusZhang Jul 3, 2024
f79423c
Merge remote-tracking branch 'forked/remove-the-link-to-make-the-proj…
ArcturusZhang Jul 3, 2024
1704461
fix the return type issue
ArcturusZhang Jul 3, 2024
e1edc70
fix test cases
ArcturusZhang Jul 3, 2024
b38bf1f
Merge remote-tracking branch 'origin/main' into fix-base-type-issue
ArcturusZhang Jul 3, 2024
47ee984
fix after merge
ArcturusZhang Jul 3, 2024
3b44a4b
overhauls the test cases for mrw serialization
ArcturusZhang Jul 4, 2024
0d53c60
refine
ArcturusZhang Jul 4, 2024
b21a84b
Merge branch 'main' into fix-base-type-issue
ArcturusZhang Jul 5, 2024
2e3caa4
Merge remote-tracking branch 'origin/main' into fix-base-type-issue
ArcturusZhang Jul 8, 2024
4b635b6
resolve comments
ArcturusZhang Jul 8, 2024
6c0ccb6
implement the discriminator
ArcturusZhang Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add a step to build the test project
  • Loading branch information
ArcturusZhang committed Jul 2, 2024
commit 8180b12c983defcfc69cb492a6189185e2ad0865
2 changes: 2 additions & 0 deletions packages/http-client-csharp/eng/scripts/Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ $testProjectsLocalDir = Join-Path $repoRoot 'generator' 'TestProjects' 'Local'

$unbrandedTypespecTestProject = Join-Path $testProjectsLocalDir "Unbranded-TypeSpec"
Invoke "npx tsp compile $unbrandedTypespecTestProject/Unbranded-TypeSpec.tsp --trace @typespec/http-client-csharp --emit @typespec/http-client-csharp --option @typespec/http-client-csharp.emitter-output-dir=$unbrandedTypespecTestProject --option @typespec/http-client-csharp.save-inputs=true"

Invoke "dotnet build $repoRoot/generator/TestProjects/Local/Unbranded-TypeSpec/src/UnbrandedTypeSpec.csproj"
Loading