Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Nov 14, 2024
1 parent 0c7240b commit 7da6d59
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions spec/Section 4 -- Composition.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ run in sequence to produce the composite execution schema.

ValidateArgumentDefaultValues():

- Let {arguments} be all arguments of fields and directives across all source schemas
- Let {arguments} be all arguments of fields and directives across all source
schemas
- For each {argument} in {arguments}
- If {IsExposed(argument)} is true and has a default value:
- Let {defaultValue} be the default value of {argument}
Expand Down Expand Up @@ -68,8 +69,10 @@ ValidateDefaultValue(defaultValue):

**Explanatory Text**

This rule ensures that inaccessible enum values are not exposed in the composed schema through default values.
Output field arguments, input fields, and directive arguments must only use enum values as their default value when not annotated with the `@inaccessible` directive.
This rule ensures that inaccessible enum values are not exposed in the composed
schema through default values. Output field arguments, input fields, and
directive arguments must only use enum values as their default value when not
annotated with the `@inaccessible` directive.

In this example the `FOO` value in the `Enum1` enum is not marked with
`@inaccessible`, hence it does not violate the rule.
Expand Down Expand Up @@ -802,4 +805,4 @@ type ObjectType1 {
}
```

## Validate Satisfiability
## Validate Satisfiability

0 comments on commit 7da6d59

Please sign in to comment.