@omnigraph/json-schema 1.0.0-alpha-20230522110904-130abe0f9 → 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.
@@ -609,19 +609,21 @@ function getComposerFromJSONSchema(schema, logger) {
609
609
  output: schemaComposer.Query,
610
610
  ...subSchema,
611
611
  };
612
- break;
613
612
  case 'Mutation':
614
613
  return {
615
614
  output: schemaComposer.Mutation,
616
615
  ...subSchema,
617
616
  };
617
+ case 'Subscription': {
618
+ if (path === '/properties/subscription') {
619
+ return {
620
+ output: schemaComposer.Subscription,
621
+ ...subSchema,
622
+ };
623
+ }
624
+ subSchema.title = 'Subscription_';
618
625
  break;
619
- case 'Subscription':
620
- return {
621
- output: schemaComposer.Subscription,
622
- ...subSchema,
623
- };
624
- break;
626
+ }
625
627
  }
626
628
  }
627
629
  }
@@ -606,19 +606,21 @@ export function getComposerFromJSONSchema(schema, logger) {
606
606
  output: schemaComposer.Query,
607
607
  ...subSchema,
608
608
  };
609
- break;
610
609
  case 'Mutation':
611
610
  return {
612
611
  output: schemaComposer.Mutation,
613
612
  ...subSchema,
614
613
  };
614
+ case 'Subscription': {
615
+ if (path === '/properties/subscription') {
616
+ return {
617
+ output: schemaComposer.Subscription,
618
+ ...subSchema,
619
+ };
620
+ }
621
+ subSchema.title = 'Subscription_';
615
622
  break;
616
- case 'Subscription':
617
- return {
618
- output: schemaComposer.Subscription,
619
- ...subSchema,
620
- };
621
- break;
623
+ }
622
624
  }
623
625
  }
624
626
  }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@omnigraph/json-schema",
3
- "version": "1.0.0-alpha-20230522110904-130abe0f9",
3
+ "version": "1.0.0-alpha-20230522113302-1be07c093",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/cross-helpers": "0.4.0-alpha-20230522110904-130abe0f9",
7
- "@graphql-mesh/types": "1.0.0-alpha-20230522110904-130abe0f9",
8
- "@graphql-mesh/utils": "1.0.0-alpha-20230522110904-130abe0f9",
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-20230522110904-130abe0f9",
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-20230522110904-130abe0f9",
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",