COVESA / COVESA/s2dm

Enhance consistency

Open
#36 0 comments 0 reactions 1 assignee Claimed by @cpodalak View on GitHub
enhancement
Dominant language
Python
Stars
17
Forks
10
Avg merge
1d 10h
Merged PRs (30d)
2

Description

Make sure that consistency is achieved in the specified information by improving the validation and checking functions.

## Example: Mismatching datatypes in directive.

```gql
type Car {
length: Int @range(min:0.0, max:100.0)
}
```
Here, the output type differs from the datatype used inside the directive.

## Example: Wrong use of limits
```gql
type Car {
doors: [Door] @cardinality(min:5, max:0)
}
```
Here, `min` is less than `max`, which should throw an error.

## Example: custom directive used wrongly
```gql
type Car {
color: String @noDuplicates
}
```
Here, the `@noDuplicates` directive is to be used in combination with the List output type modifier.

etc...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.