Skip to content

Commit

Permalink
🚧 [#4908] Add form and static variables to json registration fields s…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
viktorvanwijk committed Dec 19, 2024
1 parent 5a62937 commit 0e9c9e2
Showing 1 changed file with 53 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,21 @@ export default {
label: 'JSON',
schema: {
properties: {
// TODO-4098: add actual relevant properties
extraLine: {
// TODO-4098: update this with all properties
relativeApiEndpoint: {
minLength: 1,
title: 'Extra print statement',
title: 'Relative API endpoint',
type: 'string',
},
formVariables: {
type: 'array',
title: 'List of form variables',
items: {
type: 'string',
title: 'form variable',
minLength: 1,
}
},
},
type: 'object',
},
Expand Down Expand Up @@ -682,7 +691,11 @@ export const ConfiguredBackends = {
key: 'backend11',
name: 'JSON',
backend: 'json',
options: {relativeApiEndpoint: 'Example endpoint'},
options: {
// TODO-4098: update this with all variables
relativeApiEndpoint: 'Example endpoint',
formVariables: []
},
},
],
validationErrors: [
Expand Down Expand Up @@ -941,10 +954,46 @@ export const JSON = {
name: 'JSON',
backend: 'json',
options: {
// TODO-4908: update this with all properties
relativeApiEndpoint: 'We are checking.',
formVariables: [],
},
},
],
availableFormVariables: [
{
dataType: 'string',
form: null,
formDefinition: null,
key: 'firstName',
name: 'First name',
source: 'user_defined',
},
{
dataType: 'string',
form: null,
formDefinition: null,
key: 'lastName',
name: 'Last name',
source: 'user_defined',
},
{
dataType: 'file',
form: null,
formDefinition: null,
key: 'attachment',
name: 'Attachment',
source: 'user_defined',
},
],
availableStaticVariables: [
{
form: null,
formDefinition: null,
name: 'BSN',
key: 'auth_bsn',
},
],
},

play: async ({canvasElement}) => {
Expand Down

0 comments on commit 0e9c9e2

Please sign in to comment.