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

tsp, TCGC common layer, adopt model types #2698

Merged
merged 114 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
bcadc2d
first change on processSchema
haolingdong-msft Mar 4, 2024
329c89c
Merge branch 'main' into adopt-getAllModels
haolingdong-msft Mar 11, 2024
b444b03
add logics on enum and union
haolingdong-msft Mar 15, 2024
ef30d49
change enum test back
haolingdong-msft Mar 20, 2024
673337e
refactor for constant
haolingdong-msft Mar 20, 2024
00cf17a
apply tsp test script
haolingdong-msft Mar 20, 2024
f0c5ca2
use dev version tcgc
haolingdong-msft Mar 20, 2024
4bb1711
add code for scalar, dict
haolingdong-msft Mar 26, 2024
983c29f
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft Mar 26, 2024
dc4d483
apply cadl-ranch
haolingdong-msft Mar 26, 2024
15ff339
update processSchemaForSdkType
haolingdong-msft Mar 27, 2024
f44d495
fix discriminator case
haolingdong-msft Mar 27, 2024
f2180b7
update
haolingdong-msft Mar 29, 2024
18725f4
add todos
haolingdong-msft Mar 29, 2024
1d8dc3e
delete unused functions
haolingdong-msft Mar 29, 2024
c7f4901
refactor to directly use sdk type
haolingdong-msft Mar 29, 2024
07dda3d
generate
haolingdong-msft Apr 1, 2024
dc87566
update code
haolingdong-msft Apr 3, 2024
0aea95b
Revert "generate"
haolingdong-msft Apr 3, 2024
250be9c
code change
haolingdong-msft Apr 7, 2024
bfdf1c1
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft Apr 7, 2024
4d04c3e
solve conflict
haolingdong-msft Apr 7, 2024
4dd2305
update tcgc version to latest stable
haolingdong-msft Apr 7, 2024
757b6c3
fix anonymous parameter issue
haolingdong-msft Apr 7, 2024
a96bfbe
support additional properties
haolingdong-msft Apr 8, 2024
b8cc09a
generate additional properties case
haolingdong-msft Apr 8, 2024
e1248f1
generate for union
haolingdong-msft Apr 10, 2024
a4f999f
generate flatten case
haolingdong-msft Apr 11, 2024
1fe13fe
generate flatten case
haolingdong-msft Apr 11, 2024
36686db
operation state as fixed enum
haolingdong-msft Apr 12, 2024
29375b7
generate for nested discriminator
haolingdong-msft Apr 12, 2024
b36d256
generate addtional properties
haolingdong-msft Apr 12, 2024
651ca2e
generate long running
haolingdong-msft Apr 12, 2024
3ae9b44
Unused models with @access decorator only will not be generated
haolingdong-msft Apr 12, 2024
06e0ac8
modify test case to generate the class
haolingdong-msft Apr 12, 2024
09760e4
generate access case
haolingdong-msft Apr 12, 2024
ae9c811
regen
haolingdong-msft Apr 15, 2024
c1b2a17
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft Apr 15, 2024
4e7b825
optional case
haolingdong-msft Apr 15, 2024
96d4cf4
optional case
haolingdong-msft Apr 15, 2024
4e7d59d
generate naming test
haolingdong-msft Apr 15, 2024
e40153a
update cadl-ranch unit tests
haolingdong-msft Apr 15, 2024
ecc909b
generate flatten test
haolingdong-msft Apr 15, 2024
0bddee6
update code
haolingdong-msft Apr 15, 2024
124a71c
generate
haolingdong-msft Apr 15, 2024
e993dc6
update gitignore
haolingdong-msft Apr 15, 2024
0d03ee0
clean up
haolingdong-msft Apr 16, 2024
ff81b89
clean up
haolingdong-msft Apr 16, 2024
8ed8f0a
Merge branch 'main' into adopt-getAllModels
haolingdong-msft Apr 16, 2024
98fdefe
no need this customziation
haolingdong-msft Apr 16, 2024
3f11782
update TCGC version
haolingdong-msft Apr 18, 2024
e4bff30
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft Apr 18, 2024
623fd39
no need customization now
haolingdong-msft Apr 18, 2024
50ed824
clean up code
haolingdong-msft Apr 18, 2024
85d883c
regen
haolingdong-msft Apr 18, 2024
27a74ec
format and lint
haolingdong-msft Apr 18, 2024
dd388c4
lint
haolingdong-msft Apr 19, 2024
535c14f
format
haolingdong-msft Apr 19, 2024
20c0965
update according to comments
haolingdong-msft Apr 22, 2024
cecaf61
regen
haolingdong-msft Apr 22, 2024
1f7748f
format
haolingdong-msft Apr 22, 2024
2ed2850
refine
haolingdong-msft Apr 22, 2024
5a0b9a5
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft Apr 22, 2024
9fd2f7a
refine
haolingdong-msft Apr 22, 2024
1643267
refine code
haolingdong-msft Apr 24, 2024
db92231
regen
haolingdong-msft Apr 24, 2024
6841503
fix arm case
haolingdong-msft Apr 24, 2024
76a5b1a
regen
haolingdong-msft Apr 24, 2024
a6e5b0d
format
haolingdong-msft Apr 24, 2024
8113aff
Merge branch 'main' into adopt-getAllModels
haolingdong-msft Apr 24, 2024
a6255fa
re-generate test code
actions-user Apr 24, 2024
9eccc64
add check
haolingdong-msft Apr 24, 2024
e229fdb
Merge remote-tracking branch 'origin/adopt-getAllModels' into adopt-g…
haolingdong-msft Apr 24, 2024
7b83bc5
Fix test
haolingdong-msft Apr 24, 2024
bae7f2f
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft Apr 28, 2024
9e5e7dc
use TCGC isSDKIntKind and isSDKFloatKind
haolingdong-msft Apr 28, 2024
80eb5d9
code clean up
haolingdong-msft Apr 28, 2024
e0c3cc3
code clean up
haolingdong-msft Apr 28, 2024
2cd79bd
update for multipart form data
haolingdong-msft Apr 28, 2024
37e8fb5
update for multipart form data
haolingdong-msft Apr 28, 2024
01c9815
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft Apr 28, 2024
6a9e7ed
refine code to limit type cast
haolingdong-msft Apr 29, 2024
f94ab16
refine code to limit type cast
haolingdong-msft Apr 29, 2024
51b2560
refine code to limit type cast
haolingdong-msft Apr 29, 2024
9a66cb8
Merge branch 'main' into adopt-getAllModels
haolingdong-msft Apr 29, 2024
3491b34
lint
haolingdong-msft Apr 29, 2024
9325fb0
update according to comments
haolingdong-msft Apr 30, 2024
bf2a8cb
format and lint
haolingdong-msft Apr 30, 2024
c8b2a4b
revert change
haolingdong-msft Apr 30, 2024
60dc7ef
Update typespec-extension/src/code-model-builder.ts
haolingdong-msft Apr 30, 2024
a2fe614
Update typespec-extension/src/code-model-builder.ts
haolingdong-msft Apr 30, 2024
493042a
Update typespec-extension/src/code-model-builder.ts
haolingdong-msft Apr 30, 2024
d2d6f4f
remove fallback on summary
haolingdong-msft Apr 30, 2024
be3a065
Merge remote-tracking branch 'origin/adopt-getAllModels' into adopt-g…
haolingdong-msft Apr 30, 2024
647a020
update according to comments
haolingdong-msft Apr 30, 2024
8db3299
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft May 8, 2024
9e721d5
bump version
haolingdong-msft May 8, 2024
7cba9e8
Merge branch 'main' into adopt-getAllModels
haolingdong-msft May 8, 2024
7ca51b0
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft May 8, 2024
7b37e3d
solve conflict
haolingdong-msft May 9, 2024
531860e
update changelog
haolingdong-msft May 10, 2024
39f7fe2
Solve merge conflict
haolingdong-msft May 10, 2024
1233032
Merge branch 'main' into adopt-getAllModels
haolingdong-msft May 10, 2024
1c89b35
re-generate test code
actions-user May 10, 2024
c278812
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft May 11, 2024
cb3d823
Merge branch 'main' into adopt-getAllModels
haolingdong-msft May 11, 2024
34b0fb0
re-generate test code
actions-user May 11, 2024
03ebe21
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft May 11, 2024
705ef90
Merge remote-tracking branch 'remote/main' into adopt-getAllModels
haolingdong-msft May 11, 2024
c47d640
Merge branch 'main' into adopt-getAllModels
weidongxu-microsoft May 13, 2024
8d45984
regen
weidongxu-microsoft May 13, 2024
ec303b2
Merge branch 'main' into adopt-getAllModels
haolingdong-msft May 15, 2024
1484318
update union tests
haolingdong-msft May 15, 2024
40753cb
Merge remote-tracking branch 'origin/adopt-getAllModels' into adopt-g…
haolingdong-msft May 15, 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
solve conflict
  • Loading branch information
haolingdong-msft committed May 9, 2024
commit 7b37e3dbc42467f28cbb8ffdce176f24d2b2d4ed
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.cadl.flatten.models.Status;
import com.cadl.flatten.models.SendLongRequestStatus;
import com.cadl.flatten.models.User;
import java.io.IOException;

Expand Down Expand Up @@ -71,7 +71,7 @@ public final class SendLongRequest implements JsonSerializable<SendLongRequest>
* The status of the todo item
*/
@Generated
private final Status status;
private final SendLongRequestStatus status;

/*
* The _dummy property.
Expand All @@ -94,7 +94,7 @@ public final class SendLongRequest implements JsonSerializable<SendLongRequest>
* @param status the status value to set.
*/
@Generated
public SendLongRequest(String input, int dataInt, String title, Status status) {
public SendLongRequest(String input, int dataInt, String title, SendLongRequestStatus status) {
this.input = input;
this.dataInt = dataInt;
this.title = title;
Expand Down Expand Up @@ -247,7 +247,7 @@ public SendLongRequest setDescription(String description) {
* @return the status value.
*/
@Generated
public Status getStatus() {
public SendLongRequestStatus getStatus() {
return this.status;
}

Expand Down Expand Up @@ -319,7 +319,7 @@ public static SendLongRequest fromJson(JsonReader jsonReader) throws IOException
String input = null;
int dataInt = 0;
String title = null;
Status status = null;
SendLongRequestStatus status = null;
User user = null;
Integer dataIntOptional = null;
Long dataLong = null;
Expand All @@ -337,7 +337,7 @@ public static SendLongRequest fromJson(JsonReader jsonReader) throws IOException
} else if ("title".equals(fieldName)) {
title = reader.getString();
} else if ("status".equals(fieldName)) {
status = Status.fromString(reader.getString());
status = SendLongRequestStatus.fromString(reader.getString());
} else if ("user".equals(fieldName)) {
user = User.fromJson(reader);
} else if ("dataIntOptional".equals(fieldName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.cadl.flatten.models.Status;
import com.cadl.flatten.models.SendLongRequestStatus;

/**
* The UploadTodoRequest model.
Expand All @@ -29,7 +29,7 @@ public final class UploadTodoRequest {
* The status of the todo item
*/
@Generated
private final Status status;
private final SendLongRequestStatus status;

/*
* The _dummy property.
Expand Down Expand Up @@ -62,7 +62,7 @@ public final class UploadTodoRequest {
* @param status the status value to set.
*/
@Generated
public UploadTodoRequest(String title, Status status) {
public UploadTodoRequest(String title, SendLongRequestStatus status) {
this.title = title;
this.status = status;
}
Expand Down Expand Up @@ -105,7 +105,7 @@ public UploadTodoRequest setDescription(String description) {
* @return the status value.
*/
@Generated
public Status getStatus() {
public SendLongRequestStatus getStatus() {
return this.status;
}

Expand Down
Loading