Skip to content

Commit d01a4be

Browse files
Bradley Marquesraymond-lam
authored andcommitted
Adds some definitions to play around with
1 parent c279425 commit d01a4be

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

example/src/PlaygroundContainer.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,22 @@ const useStyles = createUseStyles({
1818
},
1919
});
2020

21+
const jsonSchema = {
22+
type: 'object',
23+
definitions: {
24+
address: {
25+
title: 'Address',
26+
type: 'object',
27+
properties: {
28+
lineOne: { type: 'string' },
29+
lineTwo: { type: 'string' }
30+
}
31+
},
32+
},
33+
};
34+
2135
export default function PlaygroundContainer({ title }: { title: string }) {
22-
const [schema, setSchema] = React.useState('{}');
36+
const [schema, setSchema] = React.useState(JSON.stringify(jsonSchema));
2337
const [uischema, setUischema] = React.useState('{}');
2438
const classes = useStyles();
2539
return (

0 commit comments

Comments
 (0)