Skip to content
Merged
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: 0 additions & 1 deletion specification/app/Microsoft.App.DynamicSessions/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import "@azure-tools/typespec-azure-core";
import "./routes.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "./common.tsp";
using TypeSpec.Http;
using TypeSpec.Rest;

namespace Microsoft.App.DynamicSessions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import "./common.tsp";
using Azure.Core;
using TypeSpec.Http;
using TypeSpec.Rest;

namespace Microsoft.App.DynamicSessions;
Expand All @@ -17,7 +16,7 @@ model SessionCodeExecutionRequest {
code: string;

@doc("Code execution timeout in seconds.")
timeoutInSeconds: int64;
timeoutInSeconds: int32;
}

@doc("The result of the code execution.")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import "@azure-tools/typespec-azure-resource-manager";

using Azure.Core;
using TypeSpec.Http;
using TypeSpec.Rest;

namespace Microsoft.App.DynamicSessions;
using OpenAPI;

@doc("The optional execution id header.")
model ExecutionOperationIdHeader {
Expand All @@ -20,7 +17,7 @@ model SessionIdentifier {
@query
@minLength(1)
@maxLength(256)
@pattern("^[A-Za-z0-9-_]{1,256}$")
@pattern("^[a-zA-Z0-9_|}{\\[\\]\\:\"\";'<>?\\/.,@#$%\\^&*()_\\-+=!~`]{4,128}$")
identifier: string;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import "./common.tsp";
using Azure.Core;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;

namespace Microsoft.App.DynamicSessions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import "./common.tsp";
using Azure.Core;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;

namespace Microsoft.App.DynamicSessions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@
},
"timeoutInSeconds": {
"type": "integer",
"format": "int64",
"format": "int32",
"description": "Code execution timeout in seconds."
}
},
Expand Down Expand Up @@ -800,7 +800,7 @@
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[A-Za-z0-9-_]{1,256}$",
"pattern": "^[a-zA-Z0-9_|}{\\[\\]\\:\"\";'<>?\\/.,@#$%\\^&*()_\\-+=!~`]{4,128}$",
"x-ms-parameter-location": "method"
},
"SessionResourceFilePathQueryParameter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@
},
"timeoutInSeconds": {
"type": "integer",
"format": "int64",
"format": "int32",
"description": "Code execution timeout in seconds."
}
},
Expand Down Expand Up @@ -1120,7 +1120,7 @@
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[A-Za-z0-9-_]{1,256}$",
"pattern": "^[a-zA-Z0-9_|}{\\[\\]\\:\"\";'<>?\\/.,@#$%\\^&*()_\\-+=!~`]{4,128}$",
"x-ms-parameter-location": "method"
},
"SessionResourceFilePathQueryParameter": {
Expand Down
Loading