You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#suppress "@azure-tools/typespec-azure-core/use-extensible-enum" "Enums should be defined without the @fixed decorator."
16
+
@doc("fixed string enum")
17
+
@fixed
18
+
enum SimpleEnum {
19
+
@doc("Enum value one")
20
+
One: "1",
21
+
@doc("Enum value two")
22
+
Two: "2",
23
+
@doc("Enum value four")
24
+
Four: "4"
25
+
}
26
+
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Operation 'test' should be defined using a signature from the Azure.Core namespace."
27
+
@doc("test fixed enum.")
28
+
op test(@doc("fixed enum as input.")@body input: SimpleEnum): string[];
#suppress "@azure-tools/typespec-azure-core/use-extensible-enum" "Enums should be defined without the @fixed decorator."
55
+
@doc("Fixed int enum")
56
+
@fixed
57
+
enum FixedIntEnum {
58
+
@doc("Enum value one")
59
+
One: 1,
60
+
@doc("Enum value two")
61
+
Two: 2,
62
+
@doc("Enum value four")
63
+
Four: 4
64
+
}
65
+
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Operation 'test' should be defined using a signature from the Azure.Core namespace."
66
+
@doc("test fixed enum.")
67
+
op test(@doc("fixed enum as input.")@body input: FixedIntEnum): string[];
0 commit comments