@omnigraph/json-schema 1.0.0-alpha-20230522105300-fe9c79867 → 1.0.0-alpha-20230522113302-1be07c093
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -605,32 +605,25 @@ function getComposerFromJSONSchema(schema, logger) {
|
|
|
605
605
|
...subSchema,
|
|
606
606
|
};
|
|
607
607
|
case 'Query':
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
};
|
|
613
|
-
}
|
|
614
|
-
subSchema.title += '_';
|
|
615
|
-
break;
|
|
608
|
+
return {
|
|
609
|
+
output: schemaComposer.Query,
|
|
610
|
+
...subSchema,
|
|
611
|
+
};
|
|
616
612
|
case 'Mutation':
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}
|
|
623
|
-
subSchema.title += '_';
|
|
624
|
-
break;
|
|
625
|
-
case 'Subscription':
|
|
613
|
+
return {
|
|
614
|
+
output: schemaComposer.Mutation,
|
|
615
|
+
...subSchema,
|
|
616
|
+
};
|
|
617
|
+
case 'Subscription': {
|
|
626
618
|
if (path === '/properties/subscription') {
|
|
627
619
|
return {
|
|
628
620
|
output: schemaComposer.Subscription,
|
|
629
621
|
...subSchema,
|
|
630
622
|
};
|
|
631
623
|
}
|
|
632
|
-
subSchema.title
|
|
624
|
+
subSchema.title = 'Subscription_';
|
|
633
625
|
break;
|
|
626
|
+
}
|
|
634
627
|
}
|
|
635
628
|
}
|
|
636
629
|
}
|
|
@@ -602,32 +602,25 @@ export function getComposerFromJSONSchema(schema, logger) {
|
|
|
602
602
|
...subSchema,
|
|
603
603
|
};
|
|
604
604
|
case 'Query':
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
subSchema.title += '_';
|
|
612
|
-
break;
|
|
605
|
+
return {
|
|
606
|
+
output: schemaComposer.Query,
|
|
607
|
+
...subSchema,
|
|
608
|
+
};
|
|
613
609
|
case 'Mutation':
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
subSchema.title += '_';
|
|
621
|
-
break;
|
|
622
|
-
case 'Subscription':
|
|
610
|
+
return {
|
|
611
|
+
output: schemaComposer.Mutation,
|
|
612
|
+
...subSchema,
|
|
613
|
+
};
|
|
614
|
+
case 'Subscription': {
|
|
623
615
|
if (path === '/properties/subscription') {
|
|
624
616
|
return {
|
|
625
617
|
output: schemaComposer.Subscription,
|
|
626
618
|
...subSchema,
|
|
627
619
|
};
|
|
628
620
|
}
|
|
629
|
-
subSchema.title
|
|
621
|
+
subSchema.title = 'Subscription_';
|
|
630
622
|
break;
|
|
623
|
+
}
|
|
631
624
|
}
|
|
632
625
|
}
|
|
633
626
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnigraph/json-schema",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230522113302-1be07c093",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/cross-helpers": "0.4.0-alpha-
|
|
7
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
8
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
6
|
+
"@graphql-mesh/cross-helpers": "0.4.0-alpha-20230522113302-1be07c093",
|
|
7
|
+
"@graphql-mesh/types": "1.0.0-alpha-20230522113302-1be07c093",
|
|
8
|
+
"@graphql-mesh/utils": "1.0.0-alpha-20230522113302-1be07c093",
|
|
9
9
|
"@graphql-tools/utils": "^9.2.1",
|
|
10
10
|
"graphql": "*",
|
|
11
11
|
"tslib": "^2.4.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@graphql-mesh/string-interpolation": "0.5.0-alpha-
|
|
14
|
+
"@graphql-mesh/string-interpolation": "0.5.0-alpha-20230522113302-1be07c093",
|
|
15
15
|
"@json-schema-tools/meta-schema": "1.7.0",
|
|
16
16
|
"@whatwg-node/fetch": "^0.8.3",
|
|
17
17
|
"ajv": "8.12.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dset": "3.1.2",
|
|
20
20
|
"graphql-compose": "9.0.10",
|
|
21
21
|
"graphql-scalars": "^1.20.4",
|
|
22
|
-
"json-machete": "1.0.0-alpha-
|
|
22
|
+
"json-machete": "1.0.0-alpha-20230522113302-1be07c093",
|
|
23
23
|
"pascal-case": "3.1.2",
|
|
24
24
|
"qs": "6.11.2",
|
|
25
25
|
"to-json-schema": "0.2.5",
|