Payload Schemas and Validation¶
This page provides concrete JSON Schema files you can reuse and extend.
Important:
match-payload.schema.jsondescribes host-required generic match fields.invite-options.schema.jsonandmove-payload.schema.jsonare strict starter templates for extension authors.- YABFS does not enforce one universal game-specific payload shape. You own your game-specific schema design.
Published schema files¶
Published example payloads¶
Validation command¶
The script validates all shipped examples against the shipped schemas and exits non-zero on failure.
How to use in your own game package¶
- Copy
invite-options.schema.jsonandmove-payload.schema.jsonas a starting point. - Replace placeholder keys with your game-specific keys.
- Keep the host generic match keys untouched in payloads returned to base UI.
- Validate example payloads in CI before publishing your package.