Fixed the error that the directive locations `FIELD_DEFINITION` and `ENUM_VALUE` cannot be parsed.

This commit is contained in:
Sunli 2021-02-15 09:25:54 +08:00
parent ad03dff728
commit 128a633ddf
3 changed files with 13 additions and 2 deletions

View File

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.5.4] - 2021-02-15
### Fixed
- Fixed the error that the directive locations `FIELD_DEFINITION` and `ENUM_VALUE` cannot be parsed.
## [2.5.3] - 2021-02-13
### Fixed

View File

@ -81,6 +81,7 @@ directive_location = {
"QUERY"
| "MUTATION"
| "SUBSCRIPTION"
| "FIELD_DEFINITION"
| "FIELD"
| "FRAGMENT_DEFINITION"
| "FRAGMENT_SPREAD"
@ -88,12 +89,11 @@ directive_location = {
| "SCHEMA"
| "SCALAR"
| "OBJECT"
| "FIELD_DEFINITION"
| "ARGUMENT_DEFINITION"
| "INTERFACE"
| "UNION"
| "ENUM"
| "ENUM_VALUE"
| "ENUM"
| "INPUT_OBJECT"
| "INPUT_FIELD_DEFINITION"
}

View File

@ -1 +1,6 @@
directive @skip(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
directive @test1(service: String!) on FIELD_DEFINITION
directive @test2(service: String!) on FIELD
directive @test3(service: String!) on ENUM_VALUE
directive @test4(service: String!) on ENUM