Skip to content

Commit

Permalink
Fixes for #66
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccallum committed Oct 25, 2021
1 parent 06c02ba commit 8105a5d
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
{
Errors: [
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Path: {
Name: readWithExplicitValidationFluent
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: fooInt,
validatorName: NullableIntValidator,
errorCode: GreaterThanValidator,
errorMessage: '' must be greater than '0'.,
attemptedValue: -1,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: 0,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: -1
}
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@
scalarArgsA: 0 | False,
scalarArgsB: 0 | False,
scalarArgsC: hello,
scalarArgsD: hello,
nullableScalarArgsA: 0 | False,
nullableScalarArgsB: 0 | False,
nullableScalarArgsC: hello,
nullableScalarArgsD: hello,
objectArgA: 0 | False,
objectArgB: 0 | False,
objectArgC: hello,
objectArgD: hello,
arrayArgA: 0, 0,
listArgA: 0, 0,
listArgB: 0,0,
listArgC: hello,
listArgD: hello,
listOfListArgC: hello,
filterSortAndPagingArgs: {
nodes: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,222 @@
}
}
},
{
Message: '' must not be empty.,
Code: FairyBread_ValidationError,
Path: {
Name: scalarArgsD
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: a,
validatorName: IntValidator,
errorCode: NotEmptyValidator,
errorMessage: '' must not be empty.,
attemptedValue: 0,
severity: Error,
formattedMessagePlaceholderValues: {
PropertyName: null,
PropertyValue: 0
}
}
},
{
Message: '' must not be empty.,
Code: FairyBread_ValidationError,
Path: {
Name: scalarArgsD
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: b,
validatorName: BoolValidator,
errorCode: NotEmptyValidator,
errorMessage: '' must not be empty.,
attemptedValue: false,
severity: Error,
formattedMessagePlaceholderValues: {
PropertyName: null,
PropertyValue: false
}
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Path: {
Name: nullableScalarArgsA
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: a,
validatorName: NullableIntValidator,
errorCode: GreaterThanValidator,
errorMessage: '' must be greater than '0'.,
attemptedValue: 0,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: 0,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: 0
}
}
},
{
Message: '' must be equal to 'True'.,
Code: FairyBread_ValidationError,
Path: {
Name: nullableScalarArgsA
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: b,
validatorName: NullableBoolValidator,
errorCode: EqualValidator,
errorMessage: '' must be equal to 'True'.,
attemptedValue: false,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: true,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: false
}
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Path: {
Name: nullableScalarArgsB
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: a,
validatorName: NullableIntValidator,
errorCode: GreaterThanValidator,
errorMessage: '' must be greater than '0'.,
attemptedValue: 0,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: 0,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: 0
}
}
},
{
Message: '' must be equal to 'True'.,
Code: FairyBread_ValidationError,
Path: {
Name: nullableScalarArgsB
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: b,
validatorName: NullableBoolValidator,
errorCode: EqualValidator,
errorMessage: '' must be equal to 'True'.,
attemptedValue: false,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: true,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: false
}
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Path: {
Name: nullableScalarArgsC
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: a,
validatorName: NullableIntValidator,
errorCode: GreaterThanValidator,
errorMessage: '' must be greater than '0'.,
attemptedValue: 0,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: 0,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: 0
}
}
},
{
Message: '' must be equal to 'True'.,
Code: FairyBread_ValidationError,
Path: {
Name: nullableScalarArgsC
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: b,
validatorName: NullableBoolValidator,
errorCode: EqualValidator,
errorMessage: '' must be equal to 'True'.,
attemptedValue: false,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: true,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: false
}
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Path: {
Name: nullableScalarArgsD
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: a,
validatorName: NullableIntValidator,
errorCode: GreaterThanValidator,
errorMessage: '' must be greater than '0'.,
attemptedValue: 0,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: 0,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: 0
}
}
},
{
Message: '' must be equal to 'True'.,
Code: FairyBread_ValidationError,
Path: {
Name: nullableScalarArgsD
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: b,
validatorName: NullableBoolValidator,
errorCode: EqualValidator,
errorMessage: '' must be equal to 'True'.,
attemptedValue: false,
severity: Error,
formattedMessagePlaceholderValues: {
ComparisonValue: true,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: false
}
}
},
{
Message: 'A' must not be empty.,
Code: FairyBread_ValidationError,
Expand Down Expand Up @@ -246,6 +462,48 @@
propertyName: B
}
},
{
Message: 'A' must not be empty.,
Code: FairyBread_ValidationError,
Path: {
Name: objectArgD
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: input,
validatorName: TestInputValidator,
errorCode: NotEmptyValidator,
errorMessage: 'A' must not be empty.,
attemptedValue: 0,
severity: Error,
formattedMessagePlaceholderValues: {
PropertyName: A,
PropertyValue: 0
},
propertyName: A
}
},
{
Message: 'B' must not be empty.,
Code: FairyBread_ValidationError,
Path: {
Name: objectArgD
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: input,
validatorName: TestInputValidator,
errorCode: NotEmptyValidator,
errorMessage: 'B' must not be empty.,
attemptedValue: false,
severity: Error,
formattedMessagePlaceholderValues: {
PropertyName: B,
PropertyValue: false
},
propertyName: B
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Expand Down Expand Up @@ -438,6 +696,54 @@
propertyName: x[1]
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Path: {
Name: listArgD
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: items,
validatorName: ListOfNullableIntValidator,
errorCode: GreaterThanValidator,
errorMessage: '' must be greater than '0'.,
attemptedValue: 0,
severity: Error,
formattedMessagePlaceholderValues: {
CollectionIndex: 0,
ComparisonValue: 0,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: 0
},
propertyName: x[0]
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Path: {
Name: listArgD
},
Extensions: {
code: FairyBread_ValidationError,
argumentName: items,
validatorName: ListOfNullableIntValidator,
errorCode: GreaterThanValidator,
errorMessage: '' must be greater than '0'.,
attemptedValue: 0,
severity: Error,
formattedMessagePlaceholderValues: {
CollectionIndex: 1,
ComparisonValue: 0,
ComparisonProperty: ,
PropertyName: null,
PropertyValue: 0
},
propertyName: x[1]
}
},
{
Message: '' must be greater than '0'.,
Code: FairyBread_ValidationError,
Expand Down
Loading

0 comments on commit 8105a5d

Please sign in to comment.