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

bump TCGC version to 0.48.4 #5260

Merged
merged 13 commits into from
Dec 11, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function getMediaTypes(type: SdkType): string[] {
function loadOperationPaging(
method: SdkServiceMethod<SdkHttpOperation>,
): OperationPaging | undefined {
if (method.kind !== "paging") {
if (method.kind !== "paging" || method.__raw_paged_metadata === undefined) {
archerzz marked this conversation as resolved.
Show resolved Hide resolved
return undefined;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public enum InputModelTypeUsage
MultipartFormData = 32,
Spread = 64,
Error = 128,
Json = 256
Json = 256,
Xml = 512,
Exception = 1024,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"kind": "model",
"name": "InvalidAuth",
"crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"decorators": [],
"properties": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"kind": "model",
"name": "InvalidAuth",
"crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"decorators": [],
"properties": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"kind": "model",
"name": "InvalidAuth",
"crossLanguageDefinitionId": "Authentication.OAuth2.InvalidAuth",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"decorators": [],
"properties": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace Payload.Xml.Models
{
public partial class ModelWithArrayOfModel
{
public ModelWithArrayOfModel(IEnumerable<SimpleModel> items) => throw null;

public IList<SimpleModel> Items => throw null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,24 @@ namespace Payload.Xml.Models
{
public partial class ModelWithAttributes
{
public int Id1 => throw null;
public ModelWithAttributes(int id1, string id2, bool enabled) => throw null;

public string Id2 => throw null;
public int Id1
{
get => throw null;
set => throw null;
}

public bool Enabled => throw null;
public string Id2
JoshLove-msft marked this conversation as resolved.
Show resolved Hide resolved
{
get => throw null;
set => throw null;
}

public bool Enabled
{
get => throw null;
set => throw null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace Payload.Xml.Models
{
public partial class ModelWithDictionary
{
public ModelWithDictionary(IDictionary<string, string> metadata) => throw null;

public IDictionary<string, string> Metadata => throw null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace Payload.Xml.Models
{
public partial class ModelWithEmptyArray
{
public ModelWithEmptyArray(IEnumerable<SimpleModel> items) => throw null;

public IList<SimpleModel> Items => throw null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ namespace Payload.Xml.Models
{
public partial class ModelWithEncodedNames
{
public SimpleModel ModelData => throw null;
public ModelWithEncodedNames(SimpleModel modelData, IEnumerable<string> colors) => throw null;

public SimpleModel ModelData
{
get => throw null;
set => throw null;
}

public IList<string> Colors => throw null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ namespace Payload.Xml.Models
{
public partial class ModelWithOptionalField
{
public string Item => throw null;
public ModelWithOptionalField(string item) => throw null;

public int? Value => throw null;
public string Item
{
get => throw null;
set => throw null;
}

public int? Value
{
get => throw null;
set => throw null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace Payload.Xml.Models
{
public partial class ModelWithRenamedArrays
{
public ModelWithRenamedArrays(IEnumerable<string> colors, IEnumerable<int> counts) => throw null;

public IList<string> Colors => throw null;

public IList<int> Counts => throw null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ namespace Payload.Xml.Models
{
public partial class ModelWithRenamedFields
{
public SimpleModel InputData => throw null;
public ModelWithRenamedFields(SimpleModel inputData, SimpleModel outputData) => throw null;

public SimpleModel OutputData => throw null;
public SimpleModel InputData
{
get => throw null;
set => throw null;
}

public SimpleModel OutputData
{
get => throw null;
set => throw null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace Payload.Xml.Models
{
public partial class ModelWithSimpleArrays
{
public ModelWithSimpleArrays(IEnumerable<string> colors, IEnumerable<int> counts) => throw null;

public IList<string> Colors => throw null;

public IList<int> Counts => throw null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ namespace Payload.Xml.Models
{
public partial class ModelWithText
{
public string Language => throw null;
public ModelWithText(string language, string content) => throw null;

public string Content => throw null;
public string Language
{
get => throw null;
set => throw null;
}

public string Content
{
get => throw null;
set => throw null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace Payload.Xml.Models
{
public partial class ModelWithUnwrappedArray
{
public ModelWithUnwrappedArray(IEnumerable<string> colors, IEnumerable<int> counts) => throw null;

public IList<string> Colors => throw null;

public IList<int> Counts => throw null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ namespace Payload.Xml.Models
{
public partial class SimpleModel
{
public string Name => throw null;
public SimpleModel(string name, int age) => throw null;

public int Age => throw null;
public string Name
{
get => throw null;
set => throw null;
}

public int Age
{
get => throw null;
set => throw null;
}
}
}
8 changes: 4 additions & 4 deletions packages/http-client-csharp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/http-client-csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@azure-tools/cadl-ranch": "0.16.1",
"@azure-tools/cadl-ranch-specs": "0.39.3",
"@azure-tools/typespec-azure-core": "0.48.0",
"@azure-tools/typespec-client-generator-core": "0.48.1",
"@azure-tools/typespec-client-generator-core": "0.48.4",
"@microsoft/api-extractor": "^7.47.11",
"@types/node": "~22.7.5",
"@typespec/compiler": "0.62.0",
Expand Down
Loading