diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/duplicate-validation-types.test.ts.snap b/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/duplicate-validation-types.test.ts.snap deleted file mode 100644 index 26d181fa22..0000000000 --- a/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/duplicate-validation-types.test.ts.snap +++ /dev/null @@ -1,243 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Duplicate Validation Types Valid usage accepts different validation types on same field 1`] = ` -"type Post { - id: ID! - title: String! - rating: Float! - score: Int! - description: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - rating: ModelFloatInput - score: ModelIntInput - description: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - rating: ModelFloatInput - score: ModelIntInput - description: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! - rating: Float! - score: Int! - description: String! -} - -input UpdatePostInput { - id: ID! - title: String - rating: Float - score: Int - description: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - rating: ModelSubscriptionFloatInput - score: ModelSubscriptionIntInput - description: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/minmax-length.test.ts.snap b/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/minmax-length.test.ts.snap deleted file mode 100644 index 7cd4b5752c..0000000000 --- a/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/minmax-length.test.ts.snap +++ /dev/null @@ -1,4481 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`min/maxLength Validators Valid usage accepts maxLength List field values of '20' 1`] = ` -"type Post { - id: ID! - comments: [String]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - comments: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - comments: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - comments: [String]! -} - -input UpdatePostInput { - id: ID! - comments: [String] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - comments: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength basic values of '3' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength basic values of '10' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength empty string of '' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength escape characters of ' ' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength large numbers of '999999999999999999999999999999' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength space values of ' ' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength whitespace with newlines of ' \\n ' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength whitespace with tabs of ' \\t ' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts maxLength zero values of '0' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength List field values of '20' 1`] = ` -"type Post { - id: ID! - tags: [String]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - tags: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - tags: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - tags: [String]! -} - -input UpdatePostInput { - id: ID! - tags: [String] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - tags: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength basic values of '3' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength basic values of '10' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength empty string of '' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength escape characters of ' ' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength large numbers of '999999999999999999999999999999' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength space values of ' ' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength whitespace with newlines of ' \\n ' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength whitespace with tabs of ' \\t ' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`min/maxLength Validators Valid usage accepts minLength zero values of '0' 1`] = ` -"type Post { - id: ID! - title: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - title: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - title: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - title: String! -} - -input UpdatePostInput { - id: ID! - title: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - title: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/numeric-validation-types.test.ts.snap b/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/numeric-validation-types.test.ts.snap deleted file mode 100644 index d25a6e910c..0000000000 --- a/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/numeric-validation-types.test.ts.snap +++ /dev/null @@ -1,50177 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Numeric Validation Types Valid usage accepts gt validation with extremely large number 999999999999999999999999999999 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with extremely large number 999999999999999999999999999999 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with extremely large number on list field 999999999999999999999999999999 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with extremely large number on list field 999999999999999999999999999999 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with infinity -Infinity on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with infinity -Infinity on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with infinity Infinity on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with infinity Infinity on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with infinity on list field -Infinity on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with infinity on list field -Infinity on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with infinity on list field Infinity on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with infinity on list field Infinity on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float -1.325 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float -1.325 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float -20.5 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float -20.5 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float -432.123 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float -432.123 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float on list field -1.325 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float on list field -1.325 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float on list field -20.5 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative float on list field -20.5 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer -1 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer -1 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer -20 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer -20 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer -432 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer -432 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer on list field -1 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer on list field -1 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer on list field -20 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with negative integer on list field -20 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float 1.325 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float 1.325 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float 20.5 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float 20.5 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float 432.123 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float 432.123 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float on list field 1.325 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float on list field 1.325 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float on list field 20.5 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive float on list field 20.5 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer 1 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer 1 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer 20 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer 20 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer 432 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer 432 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer on list field 1 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer on list field 1 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer on list field 20 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with positive integer on list field 20 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with zero 0 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with zero 0 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with zero on list field 0 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gt validation with zero on list field 0 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with extremely large number 999999999999999999999999999999 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with extremely large number 999999999999999999999999999999 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with extremely large number on list field 999999999999999999999999999999 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with extremely large number on list field 999999999999999999999999999999 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with infinity -Infinity on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with infinity -Infinity on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with infinity Infinity on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with infinity Infinity on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with infinity on list field -Infinity on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with infinity on list field -Infinity on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with infinity on list field Infinity on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with infinity on list field Infinity on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float -1.325 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float -1.325 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float -20.5 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float -20.5 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float -432.123 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float -432.123 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float on list field -1.325 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float on list field -1.325 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float on list field -20.5 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative float on list field -20.5 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer -1 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer -1 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer -20 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer -20 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer -432 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer -432 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer on list field -1 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer on list field -1 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer on list field -20 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with negative integer on list field -20 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float 1.325 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float 1.325 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float 20.5 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float 20.5 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float 432.123 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float 432.123 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float on list field 1.325 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float on list field 1.325 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float on list field 20.5 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive float on list field 20.5 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer 1 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer 1 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer 20 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer 20 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer 432 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer 432 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer on list field 1 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer on list field 1 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer on list field 20 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with positive integer on list field 20 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with zero 0 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with zero 0 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with zero on list field 0 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts gte validation with zero on list field 0 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with extremely large number 999999999999999999999999999999 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with extremely large number 999999999999999999999999999999 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with extremely large number on list field 999999999999999999999999999999 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with extremely large number on list field 999999999999999999999999999999 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with infinity -Infinity on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with infinity -Infinity on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with infinity Infinity on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with infinity Infinity on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with infinity on list field -Infinity on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with infinity on list field -Infinity on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with infinity on list field Infinity on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with infinity on list field Infinity on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float -1.325 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float -1.325 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float -20.5 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float -20.5 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float -432.123 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float -432.123 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float on list field -1.325 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float on list field -1.325 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float on list field -20.5 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative float on list field -20.5 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer -1 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer -1 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer -20 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer -20 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer -432 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer -432 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer on list field -1 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer on list field -1 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer on list field -20 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with negative integer on list field -20 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float 1.325 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float 1.325 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float 20.5 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float 20.5 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float 432.123 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float 432.123 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float on list field 1.325 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float on list field 1.325 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float on list field 20.5 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive float on list field 20.5 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer 1 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer 1 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer 20 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer 20 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer 432 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer 432 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer on list field 1 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer on list field 1 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer on list field 20 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with positive integer on list field 20 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with zero 0 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with zero 0 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with zero on list field 0 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lt validation with zero on list field 0 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with extremely large number 999999999999999999999999999999 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with extremely large number 999999999999999999999999999999 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with extremely large number on list field 999999999999999999999999999999 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with extremely large number on list field 999999999999999999999999999999 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with infinity -Infinity on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with infinity -Infinity on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with infinity Infinity on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with infinity Infinity on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with infinity on list field -Infinity on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with infinity on list field -Infinity on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with infinity on list field Infinity on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with infinity on list field Infinity on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float -1.325 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float -1.325 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float -20.5 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float -20.5 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float -432.123 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float -432.123 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float on list field -1.325 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float on list field -1.325 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float on list field -20.5 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative float on list field -20.5 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer -1 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer -1 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer -20 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer -20 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer -432 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer -432 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer on list field -1 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer on list field -1 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer on list field -20 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with negative integer on list field -20 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float 1.325 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float 1.325 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float 20.5 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float 20.5 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float 432.123 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float 432.123 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float on list field 1.325 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float on list field 1.325 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float on list field 20.5 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive float on list field 20.5 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer 1 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer 1 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer 20 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer 20 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer 432 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer 432 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer on list field 1 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer on list field 1 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer on list field 20 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with positive integer on list field 20 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with zero 0 on Float field 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with zero 0 on Int field 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with zero on list field 0 on list of Float field 1`] = ` -"type Post { - id: ID! - field: [Float]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Float]! -} - -input UpdatePostInput { - id: ID! - field: [Float] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Numeric Validation Types Valid usage accepts lte validation with zero on list field 0 on list of Int field 1`] = ` -"type Post { - id: ID! - field: [Int]! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: [Int]! -} - -input UpdatePostInput { - id: ID! - field: [Int] -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/validation-field-type-compatibility.test.ts.snap b/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/validation-field-type-compatibility.test.ts.snap deleted file mode 100644 index b3c4105aef..0000000000 --- a/packages/amplify-graphql-validate-transformer/src/__tests__/__snapshots__/validation-field-type-compatibility.test.ts.snap +++ /dev/null @@ -1,2913 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Type Compatibility Valid usage accepts \`endsWith\` validation on \`String\` field with value \`suffix\` 1`] = ` -"type Post { - id: ID! - field: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: String! -} - -input UpdatePostInput { - id: ID! - field: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`gt\` validation on \`Float\` field with value \`0.1\` 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`gt\` validation on \`Int\` field with value \`0\` 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`gte\` validation on \`Float\` field with value \`30.1\` 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`gte\` validation on \`Int\` field with value \`30\` 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`lt\` validation on \`Float\` field with value \`4.9\` 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`lt\` validation on \`Int\` field with value \`100\` 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`lte\` validation on \`Float\` field with value \`40.9\` 1`] = ` -"type Post { - id: ID! - field: Float! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelFloatInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelFloatInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Float! -} - -input UpdatePostInput { - id: ID! - field: Float -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionFloatInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`lte\` validation on \`Int\` field with value \`40\` 1`] = ` -"type Post { - id: ID! - field: Int! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelIntInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelIntInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: Int! -} - -input UpdatePostInput { - id: ID! - field: Int -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionIntInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`matches\` validation on \`String\` field with value \`regex\` 1`] = ` -"type Post { - id: ID! - field: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: String! -} - -input UpdatePostInput { - id: ID! - field: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`maxLength\` validation on \`String\` field with value \`10\` 1`] = ` -"type Post { - id: ID! - field: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: String! -} - -input UpdatePostInput { - id: ID! - field: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`minLength\` validation on \`String\` field with value \`5\` 1`] = ` -"type Post { - id: ID! - field: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: String! -} - -input UpdatePostInput { - id: ID! - field: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; - -exports[`Type Compatibility Valid usage accepts \`startsWith\` validation on \`String\` field with value \`prefix\` 1`] = ` -"type Post { - id: ID! - field: String! - createdAt: AWSDateTime! - updatedAt: AWSDateTime! -} - -input ModelStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelBooleanInput { - ne: Boolean - eq: Boolean - attributeExists: Boolean - attributeType: ModelAttributeTypes -} - -input ModelIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - attributeExists: Boolean - attributeType: ModelAttributeTypes - size: ModelSizeInput -} - -input ModelSubscriptionStringInput { - ne: String - eq: String - le: String - lt: String - ge: String - gt: String - contains: String - notContains: String - between: [String] - beginsWith: String - in: [String] - notIn: [String] -} - -input ModelSubscriptionIntInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] - in: [Int] - notIn: [Int] -} - -input ModelSubscriptionFloatInput { - ne: Float - eq: Float - le: Float - lt: Float - ge: Float - gt: Float - between: [Float] - in: [Float] - notIn: [Float] -} - -input ModelSubscriptionBooleanInput { - ne: Boolean - eq: Boolean -} - -input ModelSubscriptionIDInput { - ne: ID - eq: ID - le: ID - lt: ID - ge: ID - gt: ID - contains: ID - notContains: ID - between: [ID] - beginsWith: ID - in: [ID] - notIn: [ID] -} - -enum ModelAttributeTypes { - binary - binarySet - bool - list - map - number - numberSet - string - stringSet - _null -} - -input ModelSizeInput { - ne: Int - eq: Int - le: Int - lt: Int - ge: Int - gt: Int - between: [Int] -} - -enum ModelSortDirection { - ASC - DESC -} - -type ModelPostConnection { - items: [Post]! - nextToken: String -} - -input ModelPostFilterInput { - id: ModelIDInput - field: ModelStringInput - createdAt: ModelStringInput - updatedAt: ModelStringInput - and: [ModelPostFilterInput] - or: [ModelPostFilterInput] - not: ModelPostFilterInput -} - -type Query { - getPost(id: ID!): Post - listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection -} - -input ModelPostConditionInput { - field: ModelStringInput - and: [ModelPostConditionInput] - or: [ModelPostConditionInput] - not: ModelPostConditionInput - createdAt: ModelStringInput - updatedAt: ModelStringInput -} - -input CreatePostInput { - id: ID - field: String! -} - -input UpdatePostInput { - id: ID! - field: String -} - -input DeletePostInput { - id: ID! -} - -type Mutation { - createPost(input: CreatePostInput!, condition: ModelPostConditionInput): Post - updatePost(input: UpdatePostInput!, condition: ModelPostConditionInput): Post - deletePost(input: DeletePostInput!, condition: ModelPostConditionInput): Post -} - -input ModelSubscriptionPostFilterInput { - id: ModelSubscriptionIDInput - field: ModelSubscriptionStringInput - createdAt: ModelSubscriptionStringInput - updatedAt: ModelSubscriptionStringInput - and: [ModelSubscriptionPostFilterInput] - or: [ModelSubscriptionPostFilterInput] -} - -type Subscription { - onCreatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"createPost\\"]) - onUpdatePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"updatePost\\"]) - onDeletePost(filter: ModelSubscriptionPostFilterInput): Post @aws_subscribe(mutations: [\\"deletePost\\"]) -} -" -`; diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/directive-input-parsing.test.ts b/packages/amplify-graphql-validate-transformer/src/__tests__/directive-input-parsing.test.ts new file mode 100644 index 0000000000..4dbe38655a --- /dev/null +++ b/packages/amplify-graphql-validate-transformer/src/__tests__/directive-input-parsing.test.ts @@ -0,0 +1,163 @@ +import { testTransform } from '@aws-amplify/graphql-transformer-test-utils'; +import { ModelTransformer } from '@aws-amplify/graphql-model-transformer'; +import { ValidateTransformer } from '..'; +import { NUMERIC_VALIDATION_TYPES } from '../types'; + +const MIN_MAX_LENGTH_VALIDATION_TYPES = ['minLength', 'maxLength'] as const; +const NUMERIC_FIELD_TYPES = ['Int', 'Float'] as const; + +describe('Input parsing for min/maxLength validations', () => { + type TestCase = { + type: string; + value: string; + schema: string; + name?: string; + }; + + const createTestCases = (values: string[], type: string): TestCase[] => + values.map((value) => ({ + type, + value, + schema: /* GraphQL */ ` + type Post @model { + id: ID! + title: String! @validate(type: ${type}, value: "${value}") + } + `, + })); + + const runTest = (testCase: TestCase, expectError?: string): void => { + const transformer = new ValidateTransformer(); + if (expectError) { + expect(() => { + testTransform({ + schema: testCase.schema, + transformers: [new ModelTransformer(), transformer], + }); + }).toThrow(expectError); + } else { + expect(() => { + testTransform({ + schema: testCase.schema, + transformers: [new ModelTransformer(), transformer], + }); + }).not.toThrow(); + } + }; + + describe('Invalid usage', () => { + const testInvalidValues = (description: string, values: string[]): void => { + describe(`${description}`, () => { + test.each(MIN_MAX_LENGTH_VALIDATION_TYPES.flatMap((type) => createTestCases(values, type)))( + 'rejects $type value of "$value"', + (testCase) => { + const error = `${testCase.type} value must be a non-negative integer. Received '${testCase.value}' for field 'title'`; + runTest(testCase, error); + }, + ); + }); + }; + + testInvalidValues('Negative length values', ['-3', '-10', '-123', '-999999999999999999999999999999']); + testInvalidValues('Negative decimal values', ['-1.23', '-123.4567890', '-353756.38']); + testInvalidValues('Special values', ['NaN', 'undefined', 'null']); + testInvalidValues('Non-numeric length values', ['abc', 'bcdefghijklmnopqrstuvwxyz', '!#>?$O#']); + testInvalidValues('Whitespace values', ['', ' ', ' ']); + }); + + describe('Valid usage', () => { + const testValidValues = (description: string, values: string[]): void => { + describe(`${description}`, () => { + test.each(MIN_MAX_LENGTH_VALIDATION_TYPES.flatMap((type) => createTestCases(values, type)))( + 'accepts $type value of "$value"', + (testCase) => { + runTest(testCase); + }, + ); + }); + }; + + testValidValues('Basic values', ['3', '10', '123', '1234567890']); + testValidValues('Zero values', ['0', '00', '000', '+0', '-0']); + testValidValues('Large number', ['999999999999999999999999999999']); + }); +}); + +describe('Input parsing for numeric validations', () => { + describe('Invalid usage', () => { + const testInvalidValues = (description: string, values: string[]): void => { + describe(`${description}`, () => { + test.each( + values.flatMap((value) => + NUMERIC_VALIDATION_TYPES.flatMap((validationType) => + NUMERIC_FIELD_TYPES.map((fieldType) => ({ + validationType, + fieldType, + value, + })), + ), + ), + )('rejects `$validationType` validation with value "$value" on `$fieldType` field', ({ validationType, fieldType, value }) => { + const schema = /* GraphQL */ ` + type Post @model { + id: ID! + field: ${fieldType}! @validate(type: ${validationType}, value: "${value}") + } + `; + const error = `${validationType} value must be a number. Received '${value}' for field 'field'`; + + const transformer = new ValidateTransformer(); + expect(() => { + testTransform({ + schema, + transformers: [new ModelTransformer(), transformer], + }); + }).toThrow(error); + }); + }); + }; + + testInvalidValues('Whitespace values', ['', ' ', ' ']); + testInvalidValues('Special values', ['NaN', 'null', 'undefined']); + }); + + describe('Valid usage', () => { + const testValidValues = (description: string, values: string[]): void => { + describe(`${description}`, () => { + test.each( + values.flatMap((value) => + NUMERIC_VALIDATION_TYPES.flatMap((validationType) => + NUMERIC_FIELD_TYPES.map((fieldType) => ({ + validationType, + fieldType, + value, + })), + ), + ), + )('accepts `$validationType` validation with value "$value" on `$fieldType` field', ({ validationType, fieldType, value }) => { + const schema = /* GraphQL */ ` + type Post @model { + id: ID! + field: ${fieldType}! @validate(type: ${validationType}, value: "${value}") + } + `; + + expect(() => { + testTransform({ + schema, + transformers: [new ModelTransformer(), new ValidateTransformer()], + }); + }).not.toThrow(); + }); + }); + }; + + testValidValues('Zero values', ['0', '00', '000', '+0', '-0']); + testValidValues('Positive integers', ['3', '10', '123', '1234567890']); + testValidValues('Positive floats', ['1.325', '20.5', '432.123']); + testValidValues('Negative integers', ['-3', '-10', '-123', '-1234567890']); + testValidValues('Negative floats', ['-1.325', '-20.5', '-432.123']); + testValidValues('Infinity', ['Infinity', '-Infinity']); + testValidValues('Extremely large number', ['999999999999999999999999999999']); + }); +}); diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/duplicate-validation-types.test.ts b/packages/amplify-graphql-validate-transformer/src/__tests__/duplicate-validation-types.test.ts deleted file mode 100644 index c36d0a7c01..0000000000 --- a/packages/amplify-graphql-validate-transformer/src/__tests__/duplicate-validation-types.test.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { testTransform } from '@aws-amplify/graphql-transformer-test-utils'; -import { ModelTransformer } from '@aws-amplify/graphql-model-transformer'; -import { ValidateTransformer } from '..'; - -describe('Duplicate Validation Types', () => { - describe('Invalid usage', () => { - describe('Numeric validations', () => { - const types = ['gt', 'lt', 'gte', 'lte']; - const fieldTypes = ['Float', 'Int']; - - test.each( - types.flatMap((type) => - fieldTypes.map((fieldType) => ({ - type, - fieldType, - })), - ), - )('rejects duplicate `$type` validation on `$fieldType` field', ({ type, fieldType }) => { - const schema = /* GraphQL */ ` - type Post @model { - id: ID! - rating: ${fieldType}! @validate(type: ${type}, value: "0") @validate(type: ${type}, value: "1") - } - `; - const error = `Duplicate @validate directive with type '${type}' on field 'rating'. Each validation type can only be used once per field.`; - - const transformer = new ValidateTransformer(); - expect(() => { - testTransform({ - schema, - transformers: [new ModelTransformer(), transformer], - }); - }).toThrow(error); - }); - }); - - describe('String validations', () => { - test.each([ - { - type: 'minLength', - values: ['5', '10'], - }, - { - type: 'maxLength', - values: ['5', '10'], - }, - { - type: 'startsWith', - values: ['prefix1', 'prefix2'], - }, - { - type: 'endsWith', - values: ['suffix1', 'suffix2'], - }, - { - type: 'matches', - values: ['regex1', 'regex2'], - }, - ])('rejects duplicate `$type` validation on `String` field', ({ type, values }) => { - const schema = /* GraphQL */ ` - type Post @model { - id: ID! - title: String! @validate(type: ${type}, value: "${values[0]}") @validate(type: ${type}, value: "${values[1]}") - } - `; - const error = `Duplicate @validate directive with type '${type}' on field 'title'. Each validation type can only be used once per field.`; - - const transformer = new ValidateTransformer(); - expect(() => { - testTransform({ - schema, - transformers: [new ModelTransformer(), transformer], - }); - }).toThrow(error); - }); - }); - }); - - describe('Valid usage', () => { - test.each([ - { - name: 'accepts different validation types on same field', - schema: /* GraphQL */ ` - type Post @model { - id: ID! - title: String! @validate(type: minLength, value: "5") @validate(type: maxLength, value: "10") - rating: Float! @validate(type: gt, value: "0") @validate(type: lt, value: "6") - score: Int! @validate(type: gte, value: "10") @validate(type: lte, value: "20") - description: String! - @validate(type: startsWith, value: "prefix") - @validate(type: endsWith, value: "suffix") - @validate(type: matches, value: "regex") - } - `, - }, - ])('$name', ({ schema }) => { - const out = testTransform({ - schema, - transformers: [new ModelTransformer(), new ValidateTransformer()], - }); - expect(out).toBeDefined(); - expect(out.schema).toMatchSnapshot(); - }); - }); -}); diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/invalid-directiev-use.test.ts b/packages/amplify-graphql-validate-transformer/src/__tests__/invalid-directiev-use.test.ts new file mode 100644 index 0000000000..6256e3824c --- /dev/null +++ b/packages/amplify-graphql-validate-transformer/src/__tests__/invalid-directiev-use.test.ts @@ -0,0 +1,251 @@ +import { testTransform } from '@aws-amplify/graphql-transformer-test-utils'; +import { ModelTransformer } from '@aws-amplify/graphql-model-transformer'; +import { ValidateTransformer } from '..'; +import { NUMERIC_VALIDATION_TYPES, STRING_VALIDATION_TYPES, VALIDATION_TYPES } from '../types'; + +const NUMERIC_FIELD_TYPES = ['Int', 'Float'] as const; +const STRING_FIELD_TYPES = ['String'] as const; +const ALL_FIELD_TYPES = [...NUMERIC_FIELD_TYPES, ...STRING_FIELD_TYPES] as const; + +describe('Duplicate Validation Types on the same field', () => { + describe('Invalid usage', () => { + describe('Numeric validations', () => { + test.each( + NUMERIC_VALIDATION_TYPES.flatMap((type) => + NUMERIC_FIELD_TYPES.map((fieldType) => ({ + type, + fieldType, + })), + ), + )('rejects duplicate `$type` validation on `$fieldType` field', ({ type, fieldType }) => { + const schema = /* GraphQL */ ` + type Post @model { + id: ID! + rating: ${fieldType}! @validate(type: ${type}, value: "0") @validate(type: ${type}, value: "1") + } + `; + const error = `Duplicate @validate directive with type '${type}' on field 'rating'. Each validation type can only be used once per field.`; + + const transformer = new ValidateTransformer(); + expect(() => { + testTransform({ + schema, + transformers: [new ModelTransformer(), transformer], + }); + }).toThrow(error); + }); + }); + + describe('String validations', () => { + const testValues = { + minLength: ['5', '10'], + maxLength: ['5', '10'], + startsWith: ['prefix1', 'prefix2'], + endsWith: ['suffix1', 'suffix2'], + matches: ['regex1', 'regex2'], + }; + + test.each( + STRING_VALIDATION_TYPES.map((type) => ({ + type, + values: testValues[type], + })), + )('rejects duplicate `$type` validation on `String` field', ({ type, values }) => { + const schema = /* GraphQL */ ` + type Post @model { + id: ID! + title: String! @validate(type: ${type}, value: "${values[0]}") @validate(type: ${type}, value: "${values[1]}") + } + `; + const error = `Duplicate @validate directive with type '${type}' on field 'title'. Each validation type can only be used once per field.`; + + const transformer = new ValidateTransformer(); + expect(() => { + testTransform({ + schema, + transformers: [new ModelTransformer(), transformer], + }); + }).toThrow(error); + }); + }); + }); + + describe('Valid usage', () => { + test.each([ + { + name: 'accepts different validation types on same field', + schema: /* GraphQL */ ` + type Post @model { + id: ID! + title: String! @validate(type: minLength, value: "5") @validate(type: maxLength, value: "10") + rating: Float! @validate(type: gt, value: "0") @validate(type: lt, value: "6") + score: Int! @validate(type: gte, value: "10") @validate(type: lte, value: "20") + description: String! + @validate(type: startsWith, value: "prefix") + @validate(type: endsWith, value: "suffix") + @validate(type: matches, value: "regex") + } + `, + }, + ])('$name', ({ schema }) => { + expect(() => { + testTransform({ + schema, + transformers: [new ModelTransformer(), new ValidateTransformer()], + }); + }).not.toThrow(); + }); + }); +}); + +describe('Validation Type Compatibility with Field Type', () => { + describe('Invalid usage', () => { + type FieldType = { + type: string; + fieldName: string; + value: string; + isObject?: boolean; + }; + + const fieldTypes: FieldType[] = [ + { type: 'String', fieldName: 'title', value: 'test' }, + { type: 'ID', fieldName: 'anotherId', value: 'test-id' }, + { type: 'Boolean', fieldName: 'isPublished', value: 'true' }, + { type: 'Int', fieldName: 'count', value: '5' }, + { type: 'Float', fieldName: 'rating', value: '5.0' }, + { type: 'Author', fieldName: 'author', value: '5', isObject: true }, + ]; + + const createTestSchema = (fieldType: FieldType, validationType: string, validationValue: string): string => { + const baseSchema = /* GraphQL */ ` + type Post @model { + id: ID! + ${fieldType.fieldName}: ${fieldType.type}! @validate(type: ${validationType}, value: "${validationValue}") + } + `; + + if (fieldType.isObject) { + return ( + baseSchema + + /* GraphQL */ ` + type Author @model { + id: ID! + name: String! + } + ` + ); + } + return baseSchema; + }; + + const testInvalidFieldTypes = ( + validationTypes: string[], + allowedTypes: string[], + errorMessageFn: (type: string, field: FieldType) => string, + ): void => { + test.each( + validationTypes.flatMap((validationType) => + fieldTypes + .filter((fieldType) => !allowedTypes.includes(fieldType.type)) + .map((fieldType) => ({ + validationType, + fieldType, + })), + ), + )('rejects `$validationType` validation on `$fieldType.type` field', ({ validationType, fieldType }) => { + const schema = createTestSchema(fieldType, validationType, fieldType.value); + const transformer = new ValidateTransformer(); + expect(() => { + testTransform({ + schema, + transformers: [new ModelTransformer(), transformer], + }); + }).toThrow(errorMessageFn(validationType, fieldType)); + }); + }; + + describe('Numeric validations incompatible with non-numeric fields', () => { + testInvalidFieldTypes( + [...NUMERIC_VALIDATION_TYPES], + [...NUMERIC_FIELD_TYPES], + (validationType, fieldType) => + `Validation type '${validationType}' can only be used with numeric fields (Int, Float). Field '${fieldType.fieldName}' is of type '${fieldType.type}'`, + ); + }); + + describe('String validations incompatible with non-string fields', () => { + testInvalidFieldTypes( + [...STRING_VALIDATION_TYPES], + [...STRING_FIELD_TYPES], + (validationType, fieldType) => + `Validation type '${validationType}' can only be used with String fields. Field '${fieldType.fieldName}' is of type '${fieldType.type}'`, + ); + }); + }); + + describe('Valid usage', () => { + const testValidFieldTypes = (_: string, testCases: Array<{ validationType: string; fieldType: string; value: string }>): void => { + test.each(testCases)( + 'accepts `$validationType` validation on `$fieldType` field with value `$value`', + ({ validationType, fieldType, value }) => { + const schema = /* GraphQL */ ` + type Post @model { + id: ID! + field: ${fieldType}! @validate(type: ${validationType}, value: "${value}") + } + `; + expect(() => { + testTransform({ + schema, + transformers: [new ModelTransformer(), new ValidateTransformer()], + }); + }).not.toThrow(); + }, + ); + }; + + testValidFieldTypes('numeric validations', [ + { validationType: 'gt', fieldType: 'Int', value: '0' }, + { validationType: 'gt', fieldType: 'Float', value: '0.1' }, + { validationType: 'lt', fieldType: 'Int', value: '100' }, + { validationType: 'lt', fieldType: 'Float', value: '4.9' }, + { validationType: 'gte', fieldType: 'Int', value: '30' }, + { validationType: 'gte', fieldType: 'Float', value: '30.1' }, + { validationType: 'lte', fieldType: 'Int', value: '40' }, + { validationType: 'lte', fieldType: 'Float', value: '40.9' }, + ]); + + testValidFieldTypes('string validations', [ + { validationType: 'minLength', fieldType: 'String', value: '5' }, + { validationType: 'maxLength', fieldType: 'String', value: '10' }, + { validationType: 'startsWith', fieldType: 'String', value: 'prefix' }, + { validationType: 'endsWith', fieldType: 'String', value: 'suffix' }, + { validationType: 'matches', fieldType: 'String', value: 'regex' }, + ]); + }); +}); + +describe('Disallow validation on list fields', () => { + test.each( + VALIDATION_TYPES.flatMap((validationType) => + ALL_FIELD_TYPES.map((fieldType) => ({ + validationType, + fieldType, + value: fieldType === 'String' ? 'test' : '0', + })), + ), + )('rejects `$validationType` validation on list of `$fieldType` field', ({ validationType, fieldType, value }) => { + const schema = /* GraphQL */ ` + type Post @model { + id: ID! + field: [${fieldType}]! @validate(type: ${validationType}, value: "${value}") + } + `; + expect(() => { + testTransform({ + schema, + transformers: [new ModelTransformer(), new ValidateTransformer()], + }); + }).toThrow("Validation directive cannot be used on list field 'field'"); + }); +}); diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/minmax-length.test.ts b/packages/amplify-graphql-validate-transformer/src/__tests__/minmax-length.test.ts deleted file mode 100644 index 25098003da..0000000000 --- a/packages/amplify-graphql-validate-transformer/src/__tests__/minmax-length.test.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { testTransform } from '@aws-amplify/graphql-transformer-test-utils'; -import { ModelTransformer } from '@aws-amplify/graphql-model-transformer'; -import { ValidateTransformer } from '..'; - -describe('min/maxLength Validators', () => { - describe('Invalid usage', () => { - const types = ['minLength', 'maxLength']; - - const testInvalidValues = (description: string, values: string[]): void => { - describe(`${description}`, () => { - test.each( - types.flatMap((type) => - values.map((value) => ({ - type, - value, - })), - ), - )('rejects `$type` value of `$value`', ({ type, value }) => { - const schema = /* GraphQL */ ` - type Post @model { - id: ID! - title: String! @validate(type: ${type}, value: "${value}") - } - `; - const error = `${type} value must be a non-negative integer. Received '${value}' for field 'title'`; - - const transformer = new ValidateTransformer(); - expect(() => { - testTransform({ - schema, - transformers: [new ModelTransformer(), transformer], - }); - }).toThrow(error); - }); - }); - }; - - testInvalidValues('Special values', ['NaN', 'undefined', 'null']); - testInvalidValues('Non-numeric length values', ['abc', '!#>?$O#']); - testInvalidValues('Negative length values', ['-999999999999999999999999999999', '-10']); - }); - - describe('Valid usage', () => { - const types = ['minLength', 'maxLength']; - - const testValidValues = (description: string, testCases: Array<{ value: string; fieldType?: string }>): void => { - test.each( - testCases.flatMap((testCase) => - types.map((type) => ({ - name: `accepts ${type} ${description} of '${testCase.value}'`, - schema: /* GraphQL */ ` - type Post @model { - id: ID! - ${ - testCase.fieldType ? `${type === 'minLength' ? 'tags' : 'comments'}: [${testCase.fieldType}]!` : 'title: String!' - } @validate(type: ${type}, value: "${testCase.value}") - } - `, - })), - ), - )('$name', ({ schema }) => { - const out = testTransform({ - schema, - transformers: [new ModelTransformer(), new ValidateTransformer()], - }); - expect(out).toBeDefined(); - expect(out.schema).toMatchSnapshot(); - }); - }; - - testValidValues('basic values', [{ value: '3' }, { value: '10' }]); - testValidValues('List field values', [{ value: '20', fieldType: 'String' }]); - testValidValues('zero values', [{ value: '0' }]); - testValidValues('large numbers', [{ value: '999999999999999999999999999999' }]); - testValidValues('space values', [{ value: ' ' }]); - testValidValues('empty string', [{ value: '' }]); - testValidValues('whitespace with newlines', [{ value: ' \\n ' }]); - testValidValues('whitespace with tabs', [{ value: ' \\t ' }]); - testValidValues('escape characters', [{ value: ' ' }]); - }); -}); diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/numeric-validation-types.test.ts b/packages/amplify-graphql-validate-transformer/src/__tests__/numeric-validation-types.test.ts deleted file mode 100644 index 86ebc4b1a9..0000000000 --- a/packages/amplify-graphql-validate-transformer/src/__tests__/numeric-validation-types.test.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { testTransform } from '@aws-amplify/graphql-transformer-test-utils'; -import { ModelTransformer } from '@aws-amplify/graphql-model-transformer'; -import { ValidateTransformer } from '..'; - -describe('Numeric Validation Types', () => { - const numericValidationTypes = ['gt', 'lt', 'gte', 'lte']; - const fieldTypes = ['Int', 'Float']; - - describe('Invalid usage', () => { - const testInvalidValues = (description: string, testCases: Array<{ value: string; description: string }>): void => { - describe(`${description}`, () => { - test.each( - testCases.flatMap((testCase) => - numericValidationTypes.flatMap((validationType) => - fieldTypes.map((fieldType) => ({ - validationType, - fieldType, - value: testCase.value, - description: testCase.description, - })), - ), - ), - )('rejects `$validationType` validation with $description on `$fieldType` field', ({ validationType, fieldType, value }) => { - const schema = /* GraphQL */ ` - type Post @model { - id: ID! - field: ${fieldType}! @validate(type: ${validationType}, value: "${value}") - } - `; - const error = `${validationType} value must be a number. Received '${value}' for field 'field'`; - - const transformer = new ValidateTransformer(); - expect(() => { - testTransform({ - schema, - transformers: [new ModelTransformer(), transformer], - }); - }).toThrow(error); - }); - }); - }; - - testInvalidValues('Empty and special values', [ - { value: '', description: 'empty string' }, - { value: ' ', description: 'string with single space' }, - { value: 'NaN', description: 'Not a Number (NaN)' }, - { value: 'null', description: 'null string' }, - { value: 'undefined', description: 'undefined string' }, - ]); - }); - - describe('Valid usage', () => { - const testValidValues = (description: string, testCases: Array<{ value: string; isList?: boolean }>): void => { - test.each( - testCases.flatMap((testCase) => - numericValidationTypes.flatMap((validationType) => - fieldTypes.map((fieldType) => ({ - name: `accepts ${validationType} validation with ${description} ${testCase.value} on ${ - testCase.isList ? 'list of ' : '' - }${fieldType} field`, - schema: /* GraphQL */ ` - type Post @model { - id: ID! - field: ${testCase.isList ? `[${fieldType}]` : fieldType}! @validate(type: ${validationType}, value: "${testCase.value}") - } - `, - })), - ), - ), - )('$name', ({ schema }) => { - const out = testTransform({ - schema, - transformers: [new ModelTransformer(), new ValidateTransformer()], - }); - expect(out).toBeDefined(); - expect(out.schema).toMatchSnapshot(); - }); - }; - - testValidValues('zero', [{ value: '0' }]); - testValidValues('positive integer', [{ value: '1' }, { value: '20' }, { value: '432' }]); - testValidValues('positive float', [{ value: '1.325' }, { value: '20.5' }, { value: '432.123' }]); - testValidValues('negative integer', [{ value: '-1' }, { value: '-20' }, { value: '-432' }]); - testValidValues('negative float', [{ value: '-1.325' }, { value: '-20.5' }, { value: '-432.123' }]); - testValidValues('infinity', [{ value: 'Infinity' }, { value: '-Infinity' }]); - testValidValues('extremely large number', [{ value: '999999999999999999999999999999' }]); - - testValidValues('zero on list field', [{ value: '0', isList: true }]); - testValidValues('positive integer on list field', [ - { value: '1', isList: true }, - { value: '20', isList: true }, - ]); - testValidValues('positive float on list field', [ - { value: '1.325', isList: true }, - { value: '20.5', isList: true }, - ]); - testValidValues('negative integer on list field', [ - { value: '-1', isList: true }, - { value: '-20', isList: true }, - ]); - testValidValues('negative float on list field', [ - { value: '-1.325', isList: true }, - { value: '-20.5', isList: true }, - ]); - testValidValues('infinity on list field', [ - { value: 'Infinity', isList: true }, - { value: '-Infinity', isList: true }, - ]); - testValidValues('extremely large number on list field', [{ value: '999999999999999999999999999999', isList: true }]); - }); -}); diff --git a/packages/amplify-graphql-validate-transformer/src/__tests__/validation-field-type-compatibility.test.ts b/packages/amplify-graphql-validate-transformer/src/__tests__/validation-field-type-compatibility.test.ts deleted file mode 100644 index c114d5bace..0000000000 --- a/packages/amplify-graphql-validate-transformer/src/__tests__/validation-field-type-compatibility.test.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { testTransform } from '@aws-amplify/graphql-transformer-test-utils'; -import { ModelTransformer } from '@aws-amplify/graphql-model-transformer'; -import { ValidateTransformer } from '..'; - -describe('Type Compatibility', () => { - describe('Invalid usage', () => { - const numericValidationTypes = ['gt', 'lt', 'gte', 'lte']; - const stringValidationTypes = ['minLength', 'maxLength', 'startsWith', 'endsWith', 'matches']; - - type FieldType = { - type: string; - fieldName: string; - value: string; - isObject?: boolean; - }; - - const fieldTypes: FieldType[] = [ - { type: 'String', fieldName: 'title', value: 'test' }, - { type: 'ID', fieldName: 'anotherId', value: 'test-id' }, - { type: 'Boolean', fieldName: 'isPublished', value: 'true' }, - { type: 'Int', fieldName: 'count', value: '5' }, - { type: 'Float', fieldName: 'rating', value: '5.0' }, - { type: 'Author', fieldName: 'author', value: '5', isObject: true }, - ]; - - const createTestSchema = (fieldType: FieldType, validationType: string, validationValue: string): string => { - const baseSchema = /* GraphQL */ ` - type Post @model { - id: ID! - ${fieldType.fieldName}: ${fieldType.type}! @validate(type: ${validationType}, value: "${validationValue}") - } - `; - - if (fieldType.isObject) { - return ( - baseSchema + - /* GraphQL */ ` - type Author @model { - id: ID! - name: String! - } - ` - ); - } - return baseSchema; - }; - - const testInvalidFieldTypes = ( - validationTypes: string[], - allowedTypes: string[], - errorMessageFn: (type: string, field: FieldType) => string, - ): void => { - test.each( - validationTypes.flatMap((validationType) => - fieldTypes - .filter((fieldType) => !allowedTypes.includes(fieldType.type)) - .map((fieldType) => ({ - validationType, - fieldType, - })), - ), - )('rejects `$validationType` validation on `$fieldType.type` field', ({ validationType, fieldType }) => { - const schema = createTestSchema(fieldType, validationType, fieldType.value); - const transformer = new ValidateTransformer(); - expect(() => { - testTransform({ - schema, - transformers: [new ModelTransformer(), transformer], - }); - }).toThrow(errorMessageFn(validationType, fieldType)); - }); - }; - - describe('Numeric validations', () => { - testInvalidFieldTypes( - numericValidationTypes, - ['Int', 'Float'], - (validationType, fieldType) => - `Validation type '${validationType}' can only be used with numeric fields (Int, Float). Field '${fieldType.fieldName}' is of type '${fieldType.type}'`, - ); - }); - - describe('String validations', () => { - testInvalidFieldTypes( - stringValidationTypes, - ['String'], - (validationType, fieldType) => - `Validation type '${validationType}' can only be used with String fields. Field '${fieldType.fieldName}' is of type '${fieldType.type}'`, - ); - }); - }); - - describe('Valid usage', () => { - const testValidFieldTypes = ( - _: string, - testCases: Array<{ validationType: string; fieldType: string; value: string }>, - ): void => { - test.each(testCases)( - 'accepts `$validationType` validation on `$fieldType` field with value `$value`', - ({ validationType, fieldType, value }) => { - const schema = /* GraphQL */ ` - type Post @model { - id: ID! - field: ${fieldType}! @validate(type: ${validationType}, value: "${value}") - } - `; - const out = testTransform({ - schema, - transformers: [new ModelTransformer(), new ValidateTransformer()], - }); - expect(out).toBeDefined(); - expect(out.schema).toMatchSnapshot(); - }, - ); - }; - - testValidFieldTypes('numeric validations', [ - { validationType: 'gt', fieldType: 'Int', value: '0' }, - { validationType: 'gt', fieldType: 'Float', value: '0.1' }, - { validationType: 'lt', fieldType: 'Int', value: '100' }, - { validationType: 'lt', fieldType: 'Float', value: '4.9' }, - { validationType: 'gte', fieldType: 'Int', value: '30' }, - { validationType: 'gte', fieldType: 'Float', value: '30.1' }, - { validationType: 'lte', fieldType: 'Int', value: '40' }, - { validationType: 'lte', fieldType: 'Float', value: '40.9' }, - ]); - - testValidFieldTypes('string validations', [ - { validationType: 'minLength', fieldType: 'String', value: '5' }, - { validationType: 'maxLength', fieldType: 'String', value: '10' }, - { validationType: 'startsWith', fieldType: 'String', value: 'prefix' }, - { validationType: 'endsWith', fieldType: 'String', value: 'suffix' }, - { validationType: 'matches', fieldType: 'String', value: 'regex' }, - ]); - }); -}); diff --git a/packages/amplify-graphql-validate-transformer/src/types.ts b/packages/amplify-graphql-validate-transformer/src/types.ts index 19631e44e5..c1be2759dd 100644 --- a/packages/amplify-graphql-validate-transformer/src/types.ts +++ b/packages/amplify-graphql-validate-transformer/src/types.ts @@ -2,18 +2,46 @@ import { ObjectTypeDefinitionNode, FieldDefinitionNode } from 'graphql'; /* c8 ignore end */ +/** + * Numeric validation types in an array + */ +/* c8 ignore start */ +export const NUMERIC_VALIDATION_TYPES = ['gt', 'lt', 'gte', 'lte'] as const; +/* c8 ignore end */ + +/** + * String validation types in an array + */ +/* c8 ignore start */ +export const STRING_VALIDATION_TYPES = ['minLength', 'maxLength', 'startsWith', 'endsWith', 'matches'] as const; +/* c8 ignore end */ + /** * All supported validation types in an array */ /* c8 ignore start */ -export const VALIDATION_TYPES = ['gt', 'lt', 'gte', 'lte', 'minLength', 'maxLength', 'startsWith', 'endsWith', 'matches'] as const; +export const VALIDATION_TYPES = [...NUMERIC_VALIDATION_TYPES, ...STRING_VALIDATION_TYPES] as const; +/* c8 ignore end */ + +/** + * Numeric validations types in a string union + */ +/* c8 ignore start */ +export type NumericValidationType = (typeof NUMERIC_VALIDATION_TYPES)[number]; +/* c8 ignore end */ + +/** + * String validations types in a string union + */ +/* c8 ignore start */ +export type StringValidationType = (typeof STRING_VALIDATION_TYPES)[number]; /* c8 ignore end */ /** * All supported validation types in a string union */ /* c8 ignore start */ -export type ValidationType = (typeof VALIDATION_TYPES)[number]; +export type ValidationType = NumericValidationType | StringValidationType; /* c8 ignore end */ /** diff --git a/packages/amplify-graphql-validate-transformer/src/validators.ts b/packages/amplify-graphql-validate-transformer/src/validators.ts index 62da847c83..19ea4b03b0 100644 --- a/packages/amplify-graphql-validate-transformer/src/validators.ts +++ b/packages/amplify-graphql-validate-transformer/src/validators.ts @@ -1,32 +1,51 @@ import { InvalidDirectiveError } from '@aws-amplify/graphql-transformer-core'; import { ArgumentNode, DirectiveNode, FieldDefinitionNode, StringValueNode } from 'graphql'; -import { getBaseType } from 'graphql-transformer-common'; -import { ValidateDirectiveConfiguration, ValidationType } from './types'; +import { getBaseType, isListType } from 'graphql-transformer-common'; +import { NUMERIC_VALIDATION_TYPES, STRING_VALIDATION_TYPES, ValidateDirectiveConfiguration, ValidationType } from './types'; /** - * Type guards for validation types + * Validates all aspects of the @validate directive configuration. */ -const isNumericValidation = (type: ValidationType): boolean => { - return ['gt', 'lt', 'gte', 'lte'].includes(type); -}; +export const validate = (definition: FieldDefinitionNode, directive: DirectiveNode, config: ValidateDirectiveConfiguration): void => { + validateNoListFieldValidation(definition); + validateNoDuplicateTypes(definition, directive, config.type as ValidationType); + validateTypeCompatibility(definition, config.type as ValidationType); -const isStringValidation = (type: ValidationType): boolean => { - return ['minLength', 'maxLength', 'startsWith', 'endsWith', 'matches'].includes(type); + if (isLengthValidation(config.type as ValidationType)) { + validateLengthValue(config); + } + + if (isNumericValidation(config.type as ValidationType)) { + validateNumericValue(config); + } }; -const isLengthValidation = (type: ValidationType): boolean => { - return ['minLength', 'maxLength'].includes(type); +/** + * Validates that the field is not a list field. + */ +const validateNoListFieldValidation = (field: FieldDefinitionNode): void => { + if (isListType(field.type)) { + throw new InvalidDirectiveError(`Validation directive cannot be used on list field '${field.name.value}'`); + } }; /** - * Validates that length validation values (minLength, maxLength) are valid non-negative integers. + * Validates that there are no duplicate validation types on the same field. */ -const validateLengthValue = (config: ValidateDirectiveConfiguration): void => { - const value = Number(config.value); - if (isNaN(value) || value < 0) { - throw new InvalidDirectiveError( - `${config.type} value must be a non-negative integer. Received '${config.value}' for field '${config.field.name.value}'`, - ); +const validateNoDuplicateTypes = (field: FieldDefinitionNode, currentDirective: DirectiveNode, currentType: ValidationType): void => { + for (const peerDirective of field.directives!) { + if (peerDirective === currentDirective) { + continue; + } + + if (peerDirective.name.value === 'validate') { + const peerType = (peerDirective.arguments!.find((arg: ArgumentNode) => arg.name.value === 'type')!.value as StringValueNode).value; + if (peerType === currentType) { + throw new InvalidDirectiveError( + `Duplicate @validate directive with type '${currentType}' on field '${field.name.value}'. Each validation type can only be used once per field.`, + ); + } + } } }; @@ -50,22 +69,14 @@ const validateTypeCompatibility = (field: FieldDefinitionNode, validationType: V }; /** - * Validates that there are no duplicate validation types on the same field. + * Validates that length validation values (minLength, maxLength) are valid non-negative integers. */ -const validateNoDuplicateTypes = (field: FieldDefinitionNode, currentDirective: DirectiveNode, currentType: ValidationType): void => { - for (const peerDirective of field.directives!) { - if (peerDirective === currentDirective) { - continue; - } - - if (peerDirective.name.value === 'validate') { - const peerType = (peerDirective.arguments!.find((arg: ArgumentNode) => arg.name.value === 'type')!.value as StringValueNode).value; - if (peerType === currentType) { - throw new InvalidDirectiveError( - `Duplicate @validate directive with type '${currentType}' on field '${field.name.value}'. Each validation type can only be used once per field.`, - ); - } - } +const validateLengthValue = (config: ValidateDirectiveConfiguration): void => { + const value = parseInt(config.value); + if (isNaN(value) || value < 0) { + throw new InvalidDirectiveError( + `${config.type} value must be a non-negative integer. Received '${config.value}' for field '${config.field.name.value}'`, + ); } }; @@ -81,18 +92,14 @@ const validateNumericValue = (config: ValidateDirectiveConfiguration): void => { } }; -/** - * Validates all aspects of the @validate directive configuration. - */ -export const validate = (definition: FieldDefinitionNode, directive: DirectiveNode, config: ValidateDirectiveConfiguration): void => { - validateTypeCompatibility(definition, config.type as ValidationType); - validateNoDuplicateTypes(definition, directive, config.type as ValidationType); +const isNumericValidation = (type: ValidationType): boolean => { + return (NUMERIC_VALIDATION_TYPES as readonly ValidationType[]).includes(type); +}; - if (isLengthValidation(config.type as ValidationType)) { - validateLengthValue(config); - } +const isStringValidation = (type: ValidationType): boolean => { + return (STRING_VALIDATION_TYPES as readonly ValidationType[]).includes(type); +}; - if (isNumericValidation(config.type as ValidationType)) { - validateNumericValue(config); - } +const isLengthValidation = (type: ValidationType): boolean => { + return ['minLength', 'maxLength'].includes(type); };