fix: enum type def (#563)

This commit is contained in:
Ryan Brink
2024-01-17 16:14:47 -05:00
committed by GitHub
parent 3d1fc566d4
commit 353637bb94
25 changed files with 121 additions and 34 deletions

View File

@ -148,7 +148,6 @@ fun fromTypeToSchema(
Descriptors.FieldDescriptor.JavaType.BYTE_STRING -> TypeDefinition.STRING
Descriptors.FieldDescriptor.JavaType.ENUM -> {
cache[javaProtoField.enumType.fullName] = EnumDefinition(
type = "string",
enum = javaProtoField.enumType.values.map { it.name }.toSet()
)
ReferenceDefinition("${Helpers.COMPONENT_SLUG}/${javaProtoField.enumType.name}")

View File

@ -66,7 +66,6 @@
}
},
"Corpus": {
"type": "string",
"enum": [
"CORPUS_UNSPECIFIED",
"CORPUS_UNIVERSAL",