@@ -1889,28 +1889,14 @@ export class ValidationError extends RequestError {
18891889 this.path = path;
18901890 }
18911891}
1892- function obj1(path, value, context) {
1892+ function obj0(path, value, context) {
1893+ if (value === null ) {
1894+ return value;
1895+ }
18931896 if (typeof value !== ' string' ) {
18941897 return new ValidationError(path , 'expected a string ');
18951898 }
18961899 return value ;
1897- }
1898- function obj2(path, value, context) {
1899- if (value !== null ) {
1900- return new ValidationError(path , 'expected null ');
1901- }
1902- return value ;
1903- }
1904- function obj0(path, value, context) {
1905- const value0 = obj1 (path , value , context );
1906- if (! (value0 instanceof ValidationError )) {
1907- return value0;
1908- }
1909- const value1 = obj2 (path , value , context );
1910- if (! (value1 instanceof ValidationError )) {
1911- return value1;
1912- }
1913- return new ValidationError (path , ' expected one of the anyOf schemas to match' );
19141900} "
19151901` ;
19161902
@@ -2008,30 +1994,16 @@ export class ValidationError extends RequestError {
20081994 this.path = path;
20091995 }
20101996}
2011- function obj1(path, value, context) {
1997+ function obj0(path, value, context) {
1998+ if (value === null ) {
1999+ return value;
2000+ }
20122001 if (typeof value !== ' string' ) {
20132002 return new ValidationError(path , 'expected a string ');
20142003 }
20152004 if (value .length < 1 ) {
20162005 return new ValidationError(path , 'expected at least 1 characters ');
20172006 }
20182007 return value ;
2019- }
2020- function obj2(path, value, context) {
2021- if (value !== null ) {
2022- return new ValidationError(path , 'expected null ');
2023- }
2024- return value ;
2025- }
2026- function obj0(path, value, context) {
2027- const value0 = obj1 (path , value , context );
2028- if (! (value0 instanceof ValidationError )) {
2029- return value0;
2030- }
2031- const value1 = obj2 (path , value , context );
2032- if (! (value1 instanceof ValidationError )) {
2033- return value1;
2034- }
2035- return new ValidationError (path , ' expected one of the anyOf schemas to match' );
20362008} "
20372009` ;
0 commit comments