Skip to content

[TEST DO NOT MERGE] Test ApiDocPreview migration work #35007

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ External Contributors can read [Getting Started with OpenAPI Specifications](htt
---
_This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments._

trivial change to set a unique commit id for the PR
4 changes: 4 additions & 0 deletions specification/batch/Azure.Batch/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ namespace Azure.Batch;

@doc("The Azure Batch service version.")
enum Versions {
@doc("Api Version New")
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
v2025_06_01: "2025-06-01",

@doc("API Version 2024-07-01.20.0")
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
v2024_07_01: "2024-07-01.20.0",
Expand Down
6 changes: 6 additions & 0 deletions specification/batch/Azure.Batch/models.tsp
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-client-generator-core";
import "@typespec/versioning";

using Azure.ClientGenerator.Core;
using Azure.Core;
using Azure.Core.Foundations;
using TypeSpec.Versioning;

namespace Azure.Batch;

Expand Down Expand Up @@ -770,6 +772,10 @@ model BatchApplicationListResult {
@doc("The URL to get the next set of results.")
@nextLink
`odata.nextLink`?: string;

@doc("new property")
@added(Versions.v2025_06_01)
thisIsOurNewPropertyNameForGeneratingSdk: string;
}

@doc("Contains information about an application in an Azure Batch Account.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9930,8 +9930,15 @@
"odata.nextLink": {
"type": "string",
"description": "The URL to get the next set of results."
},
"thisIsOurNewPropertyNameForGeneratingSdk": {
"type": "string",
"description": "new property"
}
}
},
"required": [
"thisIsOurNewPropertyNameForGeneratingSdk"
]
},
"BatchApplicationPackageReference": {
"type": "object",
Expand Down
Loading
Loading