We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
custom
unused
1 parent de6277c commit e9be45eCopy full SHA for e9be45e
FirebaseVertexAI/Sources/Types/Public/Schema.swift
@@ -21,8 +21,11 @@ import Foundation
21
public class Schema {
22
/// Modifiers describing the expected format of a string `Schema`.
23
public struct StringFormat: EncodableProtoEnum {
24
+ // This enum is currently only used to conform `StringFormat` to `ProtoEnum`, which requires
25
+ // `associatedtype Kind: RawRepresentable<String>`.
26
enum Kind: String {
- case custom // TODO: Remove when we have at least one specific string format.
27
+ // Providing a case resolves the error "An enum with no cases cannot declare a raw type".
28
+ case unused // TODO: Remove `unused` case when we have at least one specific string format.
29
}
30
31
/// A custom string format.
0 commit comments