Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbakker committed May 30, 2024
1 parent 9021095 commit eec2148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ open class DgsSpringGraphQLSourceAutoConfiguration {
.instrumentation(instrumentations.orderedStream().toList())

if (properties.schema.inspection.isEnabled) {
if(reportConsumer.isPresent) {
if (reportConsumer.isPresent) {
builder.inspectSchemaMappings(reportConsumer.get())
} else {
builder.inspectSchemaMappings { message: SchemaReport? ->
val messageBuilder = StringBuilder("***Schema Report***\n")

val arguments = message?.unmappedArguments()?.map {
if(it.key is SelfDescribingDataFetcher) {
if (it.key is SelfDescribingDataFetcher) {
val dataFetcher =
(it.key as DgsGraphQLSourceBuilder.DgsSelfDescribingDataFetcher).dataFetcher
return@map dataFetcher.method.declaringClass.name + "." + dataFetcher.method.name + " for arguments " + it.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class DgsSpringGraphQlSmokeTest {
}

@Component
open class TestReportConsumer: Consumer<SchemaReport> {
open class TestReportConsumer : Consumer<SchemaReport> {
var schemaReport: SchemaReport? = null

override fun accept(schemaReport: SchemaReport) {
Expand Down

0 comments on commit eec2148

Please sign in to comment.