Skip to content

Commit 7411601

Browse files
mikeharderharryli0108
authored andcommitted
[TypeSpec] Suppress "documentation-required" lint rule (Azure#24297)
- Docs missing from version enums will be fixed by Azure/typespec-azure#3107 - Other missing docs MUST be fixed in the next update to the spec
1 parent 2e83eab commit 7411601

File tree

23 files changed

+45
-0
lines changed

23 files changed

+45
-0
lines changed

specification/cognitiveservices/AnomalyDetector/main.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ namespace AnomalyDetector;
4949
@doc("The secret key for your Azure Cognitive Services subscription.")
5050
model AnomalyDetectorApiKeyAuth is ApiKeyAuth<ApiKeyLocation.header, "Ocp-Apim-Subscription-Key">;
5151

52+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "https://github.com/Azure/typespec-azure/issues/3107"
5253
enum APIVersion {
5354
v1_1: "v1.1",
5455
}

specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ using Azure.Core;
88

99
namespace AnomalyDetector.Multivariate;
1010

11+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
1112
@doc("Field that indicates how missing values will be filled.")
1213
enum FillNAMethod {
1314
"Previous",
@@ -17,6 +18,7 @@ enum FillNAMethod {
1718
"Fixed",
1819
}
1920

21+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
2022
enum MultivariateBatchDetectionStatus {
2123
Created: "CREATED",
2224
Running: "RUNNING",
@@ -32,11 +34,13 @@ enum DataSchema {
3234
"MultiTable",
3335
}
3436

37+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
3538
enum AlignMode {
3639
"Inner",
3740
"Outer",
3841
}
3942

43+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
4044
enum ModelStatus {
4145
@doc("The model has been created. Training has been scheduled but not yet started.")
4246
Created: "CREATED",

specification/cognitiveservices/AnomalyDetector/univariate/models.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ using Azure.Core;
88

99
namespace AnomalyDetector.Univariate;
1010

11+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
1112
enum ImputeMode {
1213
Auto: "auto",
1314
Previous: "previous",
@@ -17,6 +18,7 @@ enum ImputeMode {
1718
NotFill: "notFill",
1819
}
1920

21+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
2022
enum AnomalyDetectorErrorCodes {
2123
"InvalidCustomInterval",
2224
"BadArgument",
@@ -31,6 +33,7 @@ enum AnomalyDetectorErrorCodes {
3133
"InvalidImputeFixedValue",
3234
}
3335

36+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
3437
enum TimeGranularity {
3538
Yearly: "yearly",
3639
Monthly: "monthly",

specification/cognitiveservices/ContentSafety/main.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ https://<resource-name>.cognitiveservices.azure.com).
2828
@doc("Analyze harmful content")
2929
namespace ContentSafety;
3030

31+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "https://github.com/Azure/typespec-azure/issues/3107"
3132
enum Versions {
3233
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
3334
v2023_04_30_Preview: "2023-04-30-preview",

specification/cognitiveservices/ContentSafety/models.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ using TypeSpec.Rest;
66

77
namespace ContentSafety;
88

9+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
910
@doc("Text analyze category")
1011
enum TextCategory {
1112
Hate,
@@ -14,6 +15,7 @@ enum TextCategory {
1415
Violence,
1516
}
1617

18+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
1719
@doc("Image analyze category")
1820
enum ImageCategory {
1921
Hate,

specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.request.tsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ model PatientInfo {
4646
clinicalInfo?: ClinicalCodedElement[];
4747
}
4848

49+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
4950
@doc("The patient's sex.")
5051
enum PatientInfoSex {
5152
Female: "female",
5253
Male: "male",
5354
Unspecified: "unspecified",
5455
}
5556

57+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
5658
@doc("The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document).")
5759
enum DocumentType {
5860
Note: "note",
@@ -61,6 +63,7 @@ enum DocumentType {
6163
GenomicSequencing: "genomicSequencing",
6264
}
6365

66+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
6467
@doc("The type of the clinical document.")
6568
enum ClinicalDocumentType {
6669
Consultation: "consultation",
@@ -73,6 +76,7 @@ enum ClinicalDocumentType {
7376
Pathology: "pathology",
7477
}
7578

79+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
7680
@doc("""
7781
The type of the content's source.
7882
In case the source type is 'inline', the content is given as a string (for instance, text).

specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ model TrialMatcherInferenceEvidence {
8888
...InferenceEvidence;
8989
}
9090

91+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next version"
9192
@doc("The status of the processing job.")
9293
enum JobStatus {
9394
NotStarted: "notStarted",

specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/model.oncophenotype.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ An indication whether to perform a preliminary step on the patient's documents t
7474

7575

7676

77+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
7778
@doc("The type of the Onco Phenotype inference.")
7879
enum OncoPhenotypeInferenceType {
7980
TumorSite: "tumorSite",

specification/cognitiveservices/HealthInsights/healthinsights.openapi/service.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ using TypeSpec.Versioning;
2020

2121
namespace AzureHealthInsights;
2222

23+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "https://github.com/Azure/typespec-azure/issues/3107"
2324
enum ApiVersion {
2425
@useDependency(Azure.Core.Versions.v1_0_Preview_1)
2526
v2023_03_01_preview: "2023-03-01-preview"

specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/model.trialmatcher.tsp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,20 +330,23 @@ model ClinicalTrialResearchFacility {
330330
...GeographicLocation;
331331
}
332332

333+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
333334
@doc("Possible values for the Sex eligibility criterion as accepted by clinical trials, which indicates the sex of people who may participate in a clinical study.")
334335
enum ClinicalTrialAcceptedSex {
335336
All: "all",
336337
Female: "female",
337338
Male: "male"
338339
}
339340

341+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
340342
@doc("Possible units for a person's age.")
341343
enum AgeUnit {
342344
Years: "years",
343345
Months: "months",
344346
Days: "days",
345347
}
346348

349+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
347350
@doc("Possible phases of a clinical trial.")
348351
enum ClinicalTrialPhase {
349352
NotApplicable: "notApplicable",
@@ -354,6 +357,7 @@ enum ClinicalTrialPhase {
354357
Phase4: "phase4",
355358
}
356359

360+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
357361
@doc("Possible study types of a clinical trial.")
358362
enum ClinicalTrialStudyType {
359363
Interventional: "interventional",
@@ -362,6 +366,7 @@ enum ClinicalTrialStudyType {
362366
PatientRegistries: "patientRegistries",
363367
}
364368

369+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
365370
@doc("Possible recruitment status of a clinical trial.")
366371
enum ClinicalTrialRecruitmentStatus {
367372
UnknownStatus: "unknownStatus",
@@ -370,6 +375,7 @@ enum ClinicalTrialRecruitmentStatus {
370375
EnrollingByInvitation: "enrollingByInvitation",
371376
}
372377

378+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
373379
@doc("Possible purposes of a clinical trial.")
374380
enum ClinicalTrialPurpose {
375381
NotApplicable: "notApplicable",
@@ -384,27 +390,32 @@ enum ClinicalTrialPurpose {
384390
Other: "other",
385391
}
386392

393+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
387394
@doc("Possible sources of a clinical trial.")
388395
enum ClinicalTrialSource {
389396
Custom: "custom",
390397
ClinicaltrialsGov: "clinicaltrials.gov",
391398
}
392399

400+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
393401
@doc("`GeoJSON` type.")
394402
enum GeoJsonType {
395403
Feature: "Feature",
396404
}
397405

406+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
398407
@doc("`GeoJSON` geometry type.")
399408
enum GeoJsonGeometryType {
400409
Point: "Point",
401410
}
402411

412+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
403413
@doc("`GeoJSON` object sub-type.")
404414
enum GeoJsonPropertiesSubType {
405415
Circle: "Circle",
406416
}
407417

418+
#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update"
408419
@doc("The type of the Trial Matcher inference.")
409420
enum TrialMatcherInferenceType {
410421
TrialEligibility: "trialEligibility",

0 commit comments

Comments
 (0)