Skip to content

Commit 276d658

Browse files
Suppress failing rules
1 parent 33c7eb3 commit 276d658

File tree

16 files changed

+32
-0
lines changed

16 files changed

+32
-0
lines changed

specification/ai/HealthInsights/HealthInsights.Common/model.common.fhir.resources.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ model Resource is Record<unknown> {
2828

2929
#suppress "@azure-tools/typespec-azure-core/bad-record-type" "model should have additionalProperties"
3030
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "must extends Resource to be able use clientName in both Resource and DomainResource"
31+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
3132
@doc("""
3233
A resource with narrative, extensions, and contained resources
3334
Based on [FHIR DomainResource](https://www.hl7.org/fhir/domainresource.html)

specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ model RadiologyInsightsPatientResult {
9393
inferences: RadiologyInsightsInference[];
9494
}
9595

96+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
9697
@doc("""
9798
An inference made by the Radiology Insights model regarding a patient.
9899
- AgeMismatch
@@ -246,6 +247,7 @@ model FollowupRecommendationInference extends RadiologyInsightsInference {
246247
recommendedProcedure: ProcedureRecommendation;
247248
}
248249

250+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
249251
@doc("The procedure recommendation can be a generic procedure or an imaging procedure.")
250252
@discriminator("kind")
251253
model ProcedureRecommendation {

specification/ai/OpenAI.Assistants/messages/models.tsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ union MessageAttachmentToolDefinition {
120120
@doc("An abstract representation of a single item of thread message content.")
121121
@added(ServiceApiVersions.v2024_02_15_preview)
122122
model MessageContent {
123+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
123124
@doc("The object type.")
124125
type: string;
125126
}
@@ -163,6 +164,7 @@ model MessageTextDetails {
163164
@doc("An abstract representation of an annotation to text thread message content.")
164165
@added(ServiceApiVersions.v2024_02_15_preview)
165166
model MessageTextAnnotation {
167+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
166168
@doc("The object type.")
167169
type: string;
168170

@@ -322,6 +324,7 @@ model MessageDeltaContent {
322324
index: int32;
323325

324326
/** The type of content for this content part. */
327+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
325328
type: string;
326329
}
327330

@@ -372,6 +375,7 @@ model MessageDeltaTextAnnotation {
372375
index: int32;
373376

374377
/** The type of the text content annotation. */
378+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
375379
type: string;
376380
}
377381

specification/ai/OpenAI.Assistants/run_steps/models.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ model RunStepDelta {
219219
@added(ServiceApiVersions.v2024_02_15_preview)
220220
model RunStepDeltaDetail {
221221
/** The object type for the run step detail object. */
222+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
222223
type: string;
223224
}
224225

@@ -263,6 +264,7 @@ model RunStepDeltaToolCall {
263264
id: string;
264265

265266
/** The type of the tool call detail item in a streaming run step's details. */
267+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
266268
type: string;
267269
}
268270

@@ -334,6 +336,7 @@ model RunStepDeltaCodeInterpreterOutput {
334336
index: int32;
335337

336338
/** The type of the streaming run step tool call's Code Interpreter output. */
339+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
337340
type: string;
338341
}
339342

specification/ai/OpenAI.Assistants/runs/models.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ union RunStatus {
328328
@doc("An abstract representation of a required action for an assistant thread run to continue.")
329329
@added(ServiceApiVersions.v2024_02_15_preview)
330330
model RequiredAction {
331+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
331332
@doc("The object type.")
332333
type: string;
333334
}

specification/ai/OpenAI.Assistants/tools/models.tsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace Azure.AI.OpenAI.Assistants;
1414
@discriminator("type")
1515
@added(ServiceApiVersions.v2024_02_15_preview)
1616
model ToolDefinition {
17+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
1718
@doc("The object type.")
1819
type: string;
1920
}
@@ -68,6 +69,7 @@ An abstract representation a a tool invocation needed by the model to continue a
6869
""")
6970
@added(ServiceApiVersions.v2024_02_15_preview)
7071
model RequiredToolCall {
72+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
7173
@doc("The object type for the required tool call.")
7274
type: string;
7375

@@ -103,6 +105,7 @@ model RequiredFunctionToolCallDetails {
103105
@doc("An abstract representation of a detailed tool call as recorded within a run step for an existing run.")
104106
@added(ServiceApiVersions.v2024_02_15_preview)
105107
model RunStepToolCall {
108+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
106109
@doc("The object type.")
107110
type: string;
108111

@@ -167,6 +170,7 @@ model RunStepCodeInterpreterToolCallDetails {
167170
@doc("An abstract representation of an emitted output from a code interpreter tool.")
168171
@added(ServiceApiVersions.v2024_02_15_preview)
169172
model RunStepCodeInterpreterToolCallOutput {
173+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
170174
@doc("The object type.")
171175
type: string;
172176
}

specification/cognitiveservices/OpenAI.Inference/models/completions/chat_completions.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ mode.
2424
""")
2525
@discriminator("type")
2626
model ChatCompletionsResponseFormat {
27+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
2728
@doc("The discriminated type for the response format.")
2829
type: string;
2930
}
@@ -333,6 +334,7 @@ model ChatCompletions {
333334
@discriminator("type")
334335
@doc("An abstract representation of structured information about why a chat completions response terminated.")
335336
model ChatFinishDetails {
337+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
336338
@doc("The object type.")
337339
type: string;
338340
}

specification/cognitiveservices/OpenAI.Inference/models/completions/chat_messages.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ alias ChatMessageContent = string | ChatMessageContentItem[];
2020
@doc("An abstract representation of a structured content item within a chat message.")
2121
@discriminator("type")
2222
model ChatMessageContentItem {
23+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
2324
@doc("The discriminated object type.")
2425
type: string;
2526
}

specification/cognitiveservices/OpenAI.Inference/models/completions/tools.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ union ChatCompletionsToolSelectionPreset {
3131
@discriminator("type")
3232
@doc("An abstract representation of an explicit, named tool selection to use for a chat completions request.")
3333
model ChatCompletionsNamedToolSelection {
34+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
3435
@doc("The object type.")
3536
type: string;
3637
}
@@ -59,6 +60,7 @@ model ChatCompletionsFunctionToolSelection {
5960
@doc("An abstract representation of a tool that can be used by the model to improve a chat completions response.")
6061
@added(ServiceApiVersions.v2024_02_15_Preview)
6162
model ChatCompletionsToolDefinition {
63+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
6264
@doc("The object type.")
6365
type: string;
6466
}
@@ -85,6 +87,7 @@ chat completion.
8587
""")
8688
@added(ServiceApiVersions.v2024_02_15_Preview)
8789
model ChatCompletionsToolCall {
90+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
8891
@doc("The object type.")
8992
type: string;
9093

specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ union NodeStatus {
5858
"Retired",
5959
}
6060

61+
#suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing"
6162
@doc("Common type for attestation information, describing the cryptographically-endorsed claim of what code is executing, and what platform it is executing on. Derived types contain platform-specific details.")
6263
@discriminator("format")
6364
model QuoteInfo {}

0 commit comments

Comments
 (0)