name = Schema Object Validation
description = Collection-local schema declarations for object payload validation.
scalar Food = enum("pizza", "taco", "salad")
schema Address {
city: string
postalCode: string
}
schema User {
id: UUID
email: EMAIL
birthday?: DATE?
favoriteFood?: Food
address: Address
}
---
Validate user payload
GET https://example.com/users/123
# Response matches the User schema
^ & body === User