Skip to content

Commit

Permalink
first response type
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Sep 10, 2023
1 parent 9f82de2 commit 1a11d5e
Show file tree
Hide file tree
Showing 4 changed files with 698 additions and 14 deletions.
32 changes: 32 additions & 0 deletions examples/data/Responses.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Schema } from '../../types/Schema';

export const validResponses: Schema['responses'] = [
{
"metadata": {
"section_name": "The property",
"auto_answered": true
},
"question": "Is the property in London Borough of Southwark?",
"responses": [
{
"value": "Yes"
}
]
},
{
"metadata": {
"policy_refs": [
{
"text": "Town and Country Planning Act 1990, Part 7, Section 191 & Section 192"
}
],
"section_name": "About the project"
},
"question": "What are you applying about?",
"responses": [
{
"value": "Proposed changes I want to make in the future"
}
]
},
];
9 changes: 3 additions & 6 deletions examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {validAgent, validApplicant} from './data/Applicant';
import {validApplication} from './data/Application';
import {validProperty} from './data/Property';
import {validProposal} from './data/Proposal';
import { validResponses } from './data/Responses';

const validMetadata: Schema['metadata'] = {
service: {
Expand Down Expand Up @@ -68,9 +69,7 @@ export const validExampleApplicant: Schema = {
},
result: validResult,
metadata: validMetadata,
responses: {
name: 'Test',
},
repsonses: validResponses,
files: validFiles,
};

Expand All @@ -86,8 +85,6 @@ export const validExampleAgent: Schema = {
},
result: validResult,
metadata: validMetadata,
responses: {
name: 'Test',
},
repsonses: validResponses,
files: validFiles,
};
Loading

0 comments on commit 1a11d5e

Please sign in to comment.