src/applications/income-and-asset-statement/config/chapters/01-veteran-information/applicantIsVeteran.js
import {
yesNoUI,
yesNoSchema,
} from 'platform/forms-system/src/js/web-component-patterns';
/** @type {PageSchema} */
export default {
title: 'Veteran information',
path: 'veteran/information/applicant',
uiSchema: {
'view:applicantIsVeteran': yesNoUI({
title: 'Are you the Veteran?',
}),
},
schema: {
type: 'object',
required: ['view:applicantIsVeteran'],
properties: {
'view:applicantIsVeteran': yesNoSchema,
},
},
};