@@ -22,7 +22,10 @@ const SchemaRenderer: React.FC<IProps> = ({ schema, required, name }) => {
22
22
return (
23
23
< TableRow >
24
24
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
25
- { schema . title || name }
25
+ { name }
26
+ </ TableCell >
27
+ < TableCell colSpan = { 1 } style = { styles . cellWidth } >
28
+ { schema . title }
26
29
</ TableCell >
27
30
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
28
31
< Typography variant = "body1" color = "primary" > any of</ Typography >
@@ -37,7 +40,10 @@ const SchemaRenderer: React.FC<IProps> = ({ schema, required, name }) => {
37
40
return (
38
41
< TableRow >
39
42
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
40
- { schema . title || name }
43
+ { name }
44
+ </ TableCell >
45
+ < TableCell colSpan = { 1 } style = { styles . cellWidth } >
46
+ { schema . title }
41
47
</ TableCell >
42
48
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
43
49
< Typography variant = "body1" color = "primary" > all of</ Typography >
@@ -67,7 +73,10 @@ const SchemaRenderer: React.FC<IProps> = ({ schema, required, name }) => {
67
73
return (
68
74
< TableRow >
69
75
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
70
- { schema . title || name }
76
+ { name }
77
+ </ TableCell >
78
+ < TableCell colSpan = { 1 } style = { styles . cellWidth } >
79
+ { schema . title }
71
80
</ TableCell >
72
81
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
73
82
< Typography variant = "body1" color = "primary" > array of</ Typography >
@@ -82,7 +91,10 @@ const SchemaRenderer: React.FC<IProps> = ({ schema, required, name }) => {
82
91
return (
83
92
< TableRow >
84
93
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
85
- { schema . title || name }
94
+ { name }
95
+ </ TableCell >
96
+ < TableCell colSpan = { 1 } style = { styles . cellWidth } >
97
+ { schema . title }
86
98
</ TableCell >
87
99
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
88
100
< Typography variant = "body1" color = "primary" > array of</ Typography >
@@ -98,7 +110,10 @@ const SchemaRenderer: React.FC<IProps> = ({ schema, required, name }) => {
98
110
return (
99
111
< TableRow >
100
112
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
101
- { schema . title || name }
113
+ { name }
114
+ </ TableCell >
115
+ < TableCell colSpan = { 1 } style = { styles . cellWidth } >
116
+ { schema . title }
102
117
</ TableCell >
103
118
< TableCell colSpan = { 1 } style = { styles . cellWidth } >
104
119
< Typography variant = "body1" color = "primary" > object</ Typography >
@@ -108,6 +123,7 @@ const SchemaRenderer: React.FC<IProps> = ({ schema, required, name }) => {
108
123
< TableHead >
109
124
< TableRow >
110
125
< TableCell > Name</ TableCell >
126
+ < TableCell > Title</ TableCell >
111
127
< TableCell > Type</ TableCell >
112
128
< TableCell > Pattern</ TableCell >
113
129
< TableCell > Required</ TableCell >
@@ -147,8 +163,11 @@ const SchemaRenderer: React.FC<IProps> = ({ schema, required, name }) => {
147
163
} ;
148
164
return (
149
165
< TableRow key = { schema . title } >
150
- < TableCell component = "th" scope = "row" style = { styles . cellWidth } >
151
- { schema . title || name }
166
+ < TableCell colSpan = { 1 } style = { styles . cellWidth } >
167
+ { name }
168
+ </ TableCell >
169
+ < TableCell colSpan = { 1 } style = { styles . cellWidth } >
170
+ { schema . title }
152
171
</ TableCell >
153
172
< TableCell style = { {
154
173
...styles . cellWidth ,
0 commit comments