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

[typespec-next] React to Azure/typespec-azure#3400 #25400

Merged
merged 2 commits into from
Aug 21, 2023
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "azure-rest-api-specs",
"devDependencies": {
"@azure-tools/typespec-autorest": "0.34.0-dev.6",
"@azure-tools/typespec-autorest": "next",
"@azure-tools/typespec-azure-core": "next",
"@azure-tools/typespec-azure-resource-manager": "next",
"@azure-tools/typespec-client-generator-core": "next",
"@azure-tools/typespec-providerhub": "next",
"@typespec/compiler": "next",
"@typespec/http": "0.48.0-dev.0",
"@typespec/http": "next",
"@typespec/lint": "next",
"@typespec/openapi": "next",
"@typespec/rest": "next",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
"description": "The resource instance.",
"required": true,
"schema": {
"$ref": "#/definitions/TextBlocklistUpdate"
"$ref": "#/definitions/TextBlocklistCreateOrUpdate"
}
}
],
Expand Down Expand Up @@ -942,6 +942,27 @@
"blocklistName"
]
},
"TextBlocklistCreateOrUpdate": {
"type": "object",
"description": "Text Blocklist.",
"properties": {
"blocklistName": {
mikeharder marked this conversation as resolved.
Show resolved Hide resolved
"type": "string",
"description": "Text blocklist name.",
"maxLength": 64,
"pattern": "^[0-9A-Za-z._~-]+$",
"x-ms-mutability": [
"read",
"create"
]
},
"description": {
"type": "string",
"description": "Text blocklist description.",
"maxLength": 1024
}
}
},
"TextBlocklistMatchResult": {
"type": "object",
"description": "The result of blocklist match.",
Expand Down Expand Up @@ -980,17 +1001,6 @@
"length"
]
},
"TextBlocklistUpdate": {
"type": "object",
"description": "Text Blocklist.",
"properties": {
"description": {
"type": "string",
"description": "Text blocklist description.",
"maxLength": 1024
}
}
},
"TextCategory": {
"type": "string",
"description": "Text analyze category",
Expand Down
mikeharder marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"description": "The resource instance.",
"required": true,
"schema": {
"$ref": "#/definitions/WidgetSuiteUpdate"
"$ref": "#/definitions/WidgetSuiteCreateOrUpdate"
}
}
],
Expand Down Expand Up @@ -454,7 +454,7 @@
"createdAt"
]
},
"FakedSharedModelUpdate": {
"FakedSharedModelCreateOrUpdate": {
"type": "object",
"description": "Faked shared model",
"properties": {
Expand Down Expand Up @@ -532,7 +532,7 @@
"manufacturerId"
]
},
"WidgetSuiteUpdate": {
"WidgetSuiteCreateOrUpdate": {
"type": "object",
"description": "A widget.",
"properties": {
Expand All @@ -541,7 +541,7 @@
"description": "The ID of the widget's manufacturer."
},
"sharedModel": {
"$ref": "#/definitions/FakedSharedModelUpdate",
"$ref": "#/definitions/FakedSharedModelCreateOrUpdate",
"description": "The faked shared model."
}
}
Expand Down