write stub schema as validation helper