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
Add better support for enum values, with Xcode tags.
Xcode tag syntax means that you can now click on the link in the docs, and it will take you straight to the enum. This should make it a little bit easier for clients to see what options are available.
- Requires: Value should be one of [`{{enum}}.{{class_name}}`](x-source-tag://otel{{class_name}}) (of type `{{to_swift_return_type(attribute.attr_type|lower)}}`)
58
+
{%else%}
55
59
- Requires: Value type should be `{{to_swift_return_type(attribute.attr_type|lower)}}`
60
+
{%endif -%}
56
61
*/
57
62
{%- ifattribute.deprecated%}
58
63
@available(*, deprecated)
@@ -78,6 +83,7 @@ public enum {{enum}}: String {
78
83
/**
79
84
{{attribute.brief | to_doc_brief}}.
80
85
*/
86
+
/// - Tag: otel{{class_name}}
81
87
{%- ifattribute.attr_type.custom_values%}
82
88
public struct {{class_name}}: CustomStringConvertible {
83
89
{%- formemberinattribute.attr_type.members%}
@@ -90,7 +96,8 @@ public enum {{enum}}: String {
90
96
/**
91
97
swift.
92
98
*/
93
-
public static let swift = TelemetrySdkLanguageValues("swift"){%endif%}
99
+
public static let swift = TelemetrySdkLanguageValues("swift")
0 commit comments