On this page
Show calculator help to users
Use this guide when your UI needs labels, required facts or validation help for the selected calculator.
Before you start
- Choose a calculator ID such as
au.pay.take-home. - Use HTTP for browser clients that cannot import rule packages.
- Keep the generated OpenAPI reference as the endpoint field source.
Steps
- Fetch calculator schema metadata.
- Render fact titles and question metadata.
- Display safe issue paths alongside the schema endpoint’s field guidance.
- Show returned issue paths beside your fields.
Example
Verify the result
Expected output includes fact descriptors for gross pay and the tax-free threshold claim used by the take-home pay calculator.
Handle errors
Let the typed client's expected error channel reach your application error handler. Display the checked issue paths or descriptor help from an input decode failure; API errors explains the envelope and other server failures. The schema endpoint supplies field guidance when its checked request facts do not match the selected calculator.