Skip to content

Commit

Permalink
feat: add FormContext for addtional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVolland committed Jan 14, 2025
1 parent 18b93c4 commit f5b2177
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/lib/components/Form/FormContext.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,22 @@ const formValidators: FormValidators = {
},
additional: {
required: [],
optional: []
optional: [{
key: 'isoMetadata.contentDescription',
validator: (val) => val !== undefined && val !== null && val !== ''
}, {
key: 'isoMetadata.contentDescriptionTextarea',
validator: (val) => val !== undefined && val !== null && val !== ''
},{
key: 'isoMetadata.technicalDescription',
validator: (val) => val !== undefined && val !== null && val !== ''
}, {
key: 'isoMetadata.lineage',
validator: (val) => val !== undefined && val !== null && val !== ''
},{
key: 'isoMetadata.additionalInformation',
validator: (val) => val !== undefined && val !== null && val !== ''
}]
},
display_services: {
required: [],
Expand Down

0 comments on commit f5b2177

Please sign in to comment.