Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ghostdogpr/caliban
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a84bbfe064df09d3b7efc323997f1fb26f8fb16e
Choose a base ref
..
head repository: ghostdogpr/caliban
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 85e67f1958e50d8da3ffcb66eb0b27dd601c4e9b
Choose a head ref
Showing with 4 additions and 3 deletions.
  1. +3 −3 core/src/main/scala/caliban/schema/Schema.scala
  2. +1 −0 core/src/main/scala/caliban/schema/SchemaUtils.scala
6 changes: 3 additions & 3 deletions core/src/main/scala/caliban/schema/Schema.scala
Original file line number Diff line number Diff line change
@@ -257,7 +257,7 @@ trait GenericSchema[R] extends SchemaDerivation[R] with TemporalSchema {
def field[V](
name: String,
description: Option[String] = None,
directives: List[Directive] = List.empty,
directives: List[Directive] = List.empty
): PartiallyAppliedField[V] =
PartiallyAppliedField[V](name, description, directives)

@@ -267,7 +267,7 @@ trait GenericSchema[R] extends SchemaDerivation[R] with TemporalSchema {
def fieldLazy[V](
name: String,
description: Option[String] = None,
directives: List[Directive] = List.empty,
directives: List[Directive] = List.empty
): PartiallyAppliedFieldLazy[V] =
PartiallyAppliedFieldLazy[V](name, description, directives)

@@ -277,7 +277,7 @@ trait GenericSchema[R] extends SchemaDerivation[R] with TemporalSchema {
def fieldWithArgs[V, A](
name: String,
description: Option[String] = None,
directives: List[Directive] = Nil,
directives: List[Directive] = Nil
): PartiallyAppliedFieldWithArgs[V, A] =
PartiallyAppliedFieldWithArgs[V, A](name, description, directives)

1 change: 1 addition & 0 deletions core/src/main/scala/caliban/schema/SchemaUtils.scala
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ import caliban.schema.Step.MetadataFunctionStep
import caliban.parsing.adt.Directive

private[schema] object SchemaUtils {

/**
* Directive used to mark a field as semantically non-nullable.
*/