Skip to content

Commit e9be45e

Browse files
committed
Rename custom case to unused for clarity and add comments
1 parent de6277c commit e9be45e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FirebaseVertexAI/Sources/Types/Public/Schema.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ import Foundation
2121
public class Schema {
2222
/// Modifiers describing the expected format of a string `Schema`.
2323
public struct StringFormat: EncodableProtoEnum {
24+
// This enum is currently only used to conform `StringFormat` to `ProtoEnum`, which requires
25+
// `associatedtype Kind: RawRepresentable<String>`.
2426
enum Kind: String {
25-
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.
2629
}
2730

2831
/// A custom string format.

0 commit comments

Comments
 (0)