Function
isInt32
(annotations?: Annotations.Filter)
Source from the content-addressed store, hash-verified
| 8074 | * @since 4.0.0 |
| 8075 | */ |
| 8076 | export function isInt32(annotations?: Annotations.Filter) { |
| 8077 | return new SchemaAST.FilterGroup( |
| 8078 | [ |
| 8079 | isInt(), |
| 8080 | isBetween({ minimum: -2147483648, maximum: 2147483647 }) |
| 8081 | ], |
| 8082 | { |
| 8083 | expected: "a 32-bit integer", |
| 8084 | ...annotations |
| 8085 | } |
| 8086 | ) |
| 8087 | } |
| 8088 | /** |
| 8089 | * Validates that a number is a 32-bit unsigned integer (range: 0 to |
| 8090 | * 4,294,967,295). |
Callers
nothing calls this directly
Tested by
no test coverage detected