Skip to content

Commit

Permalink
update java codegen too
Browse files Browse the repository at this point in the history
  • Loading branch information
eboudrant committed May 25, 2022
1 parent 5c6aa67 commit 6d68f30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SchemaBuilder(

private fun typesFieldSpec(): FieldSpec {
val allTypenames = interfaces.map { it.name } + objects.map { it.name } + unions.map { it.name }
val initilizer = allTypenames.map {
val initilizer = allTypenames.sortedBy { it }.map {
CodeBlock.of("$T.type", context.resolver.resolveSchemaType(it))
}.toListInitializerCodeblock(withNewLines = true)

Expand Down

0 comments on commit 6d68f30

Please sign in to comment.