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

[test fork] Remove properties in model for testing purpose #3554

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions specification/cognitiveservices/ContentSafety/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ model AnalyzeTextResult {
@doc("The blocklist match details.")
blocklistsMatch?: TextBlocklistMatch[];

@removed(Versions.v2024_09_01)
@doc("Analysis result for categories.")
categoriesAnalysis: TextCategoriesAnalysis[];
}
Expand All @@ -100,6 +101,7 @@ model TextBlocklistMatch {
@maxLength(64)
blocklistItemId: string;

@removed(Versions.v2024_09_01)
@doc("The content of the matched item.")
@maxLength(128)
blocklistItemText: string;
Expand Down
6 changes: 3 additions & 3 deletions specification/cognitiveservices/ContentSafety/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ options:
omit-unreachable-types: true
"@azure-tools/typespec-python":
package-dir: "azure-ai-contentsafety"
package-version: "1.0.0"
package-version: "2.0.0"
package-name: "{package-dir}"
package-pprint-name: '"Azure AI Content Safety"'
flavor: azure
Expand All @@ -31,12 +31,12 @@ options:
package-dir: "ai-content-safety-rest"
packageDetails:
name: "@azure-rest/ai-content-safety"
version: "1.0.0"
version: "2.0.0"
description: "ContentSafety Service"
flavor: azure
"@azure-tools/typespec-java":
package-dir: "azure-ai-contentsafety"
namespace: com.azure.ai.contentsafety
partial-update: true
flavor: azure
api-version: "2023-10-01"
api-version: "2024-09-01"
Original file line number Diff line number Diff line change
Expand Up @@ -811,19 +811,8 @@
"$ref": "#/definitions/TextBlocklistMatch"
},
"x-ms-identifiers": []
},
"categoriesAnalysis": {
"type": "array",
"description": "Analysis result for categories.",
"items": {
"$ref": "#/definitions/TextCategoriesAnalysis"
},
"x-ms-identifiers": []
}
},
"required": [
"categoriesAnalysis"
]
}
},
"Azure.Core.Foundations.Error": {
"type": "object",
Expand Down Expand Up @@ -1178,35 +1167,11 @@
"type": "string",
"description": "The ID of the matched item.",
"maxLength": 64
},
"blocklistItemText": {
"type": "string",
"description": "The content of the matched item.",
"maxLength": 128
}
},
"required": [
"blocklistName",
"blocklistItemId",
"blocklistItemText"
]
},
"TextCategoriesAnalysis": {
"type": "object",
"description": "Text analysis result.",
"properties": {
"category": {
"$ref": "#/definitions/TextCategory",
"description": "The text analysis category."
},
"severity": {
"type": "integer",
"format": "int32",
"description": "The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels’ or ‘EightSeverity Levels’, and the output value can be 0, 2, 4, 6 or 0, 1, 2, 3, 4, 5, 6, or 7."
}
},
"required": [
"category"
"blocklistItemId"
]
},
"TextCategory": {
Expand Down