Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- `isAIBuilderSupported` to form schema

## [12.3.0] - 2025-10-26

### Added
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/lib/forms-schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ const formSchema = Joi.object().keys({
.required(),
}),
),
isAIBuilderSupported: Joi.boolean().default(false),
})

export const formEventTypes: SubmissionEventTypes.FormEventType[] = [
Expand Down
3 changes: 3 additions & 0 deletions tests/forms-schema/forms-schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5898,6 +5898,7 @@ describe('invalid property removal', () => {
elements: [],
isAuthenticated: false,
isMultiPage: false,
isAIBuilderSupported: false,
})
})

Expand Down Expand Up @@ -5932,6 +5933,7 @@ describe('invalid property removal', () => {
elements: [],
isAuthenticated: false,
isMultiPage: false,
isAIBuilderSupported: false,
})
})
test('should allow `postSubmissionReceipt.allowPDFDownload` if `postSubmissionAction` is not "URL"', () => {
Expand Down Expand Up @@ -5984,6 +5986,7 @@ describe('invalid property removal', () => {
elements: [],
isAuthenticated: false,
isMultiPage: false,
isAIBuilderSupported: false,
})
})
test('should throw error for `postSubmissionReceipt.allowPdfDownload.excludedElementIds` contains element ids that do not exist on the form', () => {
Expand Down