File tree 2 files changed +1
-36
lines changed
2 files changed +1
-36
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ export function extractSchema(
219
219
return { type : 'unknown' } satisfies UnknownTypeNode
220
220
}
221
221
222
- if ( schemaType . type ?. name !== 'document' ) {
222
+ if ( schemaType . type ?. name !== 'document' && schemaType . name !== 'object' ) {
223
223
attributes . _type = {
224
224
type : 'objectAttribute' ,
225
225
value : {
Original file line number Diff line number Diff line change @@ -1334,13 +1334,6 @@ Array [
1334
1334
" type" : " objectAttribute" ,
1335
1335
" value" : Object {
1336
1336
" attributes" : Object {
1337
- " _type" : Object {
1338
- " type" : " objectAttribute" ,
1339
- " value" : Object {
1340
- " type" : " string" ,
1341
- " value" : " object" ,
1342
- },
1343
- },
1344
1337
" blocks" : Object {
1345
1338
" optional" : true ,
1346
1339
" type" : " objectAttribute" ,
@@ -1797,13 +1790,6 @@ Array [
1797
1790
" value" : Object {
1798
1791
" of" : Object {
1799
1792
" attributes" : Object {
1800
- " _type" : Object {
1801
- " type" : " objectAttribute" ,
1802
- " value" : Object {
1803
- " type" : " string" ,
1804
- " value" : " object" ,
1805
- },
1806
- },
1807
1793
" author" : Object {
1808
1794
" optional" : true ,
1809
1795
" type" : " objectAttribute" ,
@@ -1953,13 +1939,6 @@ Array [
1953
1939
" value" : Object {
1954
1940
" of" : Object {
1955
1941
" attributes" : Object {
1956
- " _type" : Object {
1957
- " type" : " objectAttribute" ,
1958
- " value" : Object {
1959
- " type" : " string" ,
1960
- " value" : " object" ,
1961
- },
1962
- },
1963
1942
" aNumber" : Object {
1964
1943
" optional" : true ,
1965
1944
" type" : " objectAttribute" ,
@@ -2555,13 +2534,6 @@ Array [
2555
2534
" value" : Object {
2556
2535
" of" : Object {
2557
2536
" attributes" : Object {
2558
- " _type" : Object {
2559
- " type" : " objectAttribute" ,
2560
- " value" : Object {
2561
- " type" : " string" ,
2562
- " value" : " object" ,
2563
- },
2564
- },
2565
2537
" aNumber" : Object {
2566
2538
" optional" : true ,
2567
2539
" type" : " objectAttribute" ,
@@ -2618,13 +2590,6 @@ Array [
2618
2590
" type" : " objectAttribute" ,
2619
2591
" value" : Object {
2620
2592
" attributes" : Object {
2621
- " _type" : Object {
2622
- " type" : " objectAttribute" ,
2623
- " value" : Object {
2624
- " type" : " string" ,
2625
- " value" : " object" ,
2626
- },
2627
- },
2628
2593
" blocks" : Object {
2629
2594
" optional" : true ,
2630
2595
" type" : " objectAttribute" ,
You can’t perform that action at this time.
0 commit comments