Validate field data types
Medium70 pts~25 min
- Type checking
- Contracts
Practice app · Acme REST API
A live REST + GraphQL API with auth, validation, pagination, rate limiting and an interactive request console.
Your starter code already declares BASE_URL — call the API relative to it.
Objective
Assert the type of every field in the user payload, not just its presence.
Your task
- 1GET BASE_URL + "/users/1".
- 2Assert id is an integer, name/email/role are strings, active is a boolean.
- 3Assert address is an object, tags is an array of strings, and createdAt parses as a date.
Acceptance criteria
- GET /users/1 returns 200
- At least 5 assertions pass
Fixtures
- apiKey
- tqa_live_key_123
- basicUser
- admin
- basicPassword
- secret
- username
- qa@target.dev
- password
- Test@123
API testing · SDET · Schema & contracts