@graphql-codegen/c-sharp 4.2.7 → 4.2.10

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.
package/config.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface CSharpResolversPluginRawConfig extends RawConfig {
8
8
  * @description Overrides the default value of enum values declared in your GraphQL schema.
9
9
  * @exampleMarkdown
10
10
  * ## With Custom Values
11
- * ```yml
11
+ * ```yaml
12
12
  * config:
13
13
  * enumValues:
14
14
  * MyEnum:
@@ -21,7 +21,7 @@ export interface CSharpResolversPluginRawConfig extends RawConfig {
21
21
  * @description Allow you to customize the namespace name.
22
22
  *
23
23
  * @exampleMarkdown
24
- * ```yml
24
+ * ```yaml
25
25
  * generates:
26
26
  * src/main/c-sharp/my-org/my-app/MyTypes.cs:
27
27
  * plugins:
@@ -36,7 +36,7 @@ export interface CSharpResolversPluginRawConfig extends RawConfig {
36
36
  * @description Allow you to customize the parent class name.
37
37
  *
38
38
  * @exampleMarkdown
39
- * ```yml
39
+ * ```yaml
40
40
  * generates:
41
41
  * src/main/c-sharp/my-org/my-app/MyGeneratedTypes.cs:
42
42
  * plugins:
@@ -51,7 +51,7 @@ export interface CSharpResolversPluginRawConfig extends RawConfig {
51
51
  * @description Allow you to customize the list type
52
52
  *
53
53
  * @exampleMarkdown
54
- * ```yml
54
+ * ```yaml
55
55
  * generates:
56
56
  * src/main/c-sharp/my-org/my-app/Types.cs:
57
57
  * plugins:
@@ -66,7 +66,7 @@ export interface CSharpResolversPluginRawConfig extends RawConfig {
66
66
  * @description Emit C# 9.0+ records instead of classes
67
67
  *
68
68
  * @exampleMarkdown
69
- * ```yml
69
+ * ```yaml
70
70
  * generates:
71
71
  * src/main/c-sharp/my-org/my-app/Types.cs:
72
72
  * plugins:
@@ -81,7 +81,7 @@ export interface CSharpResolversPluginRawConfig extends RawConfig {
81
81
  * @description Should JSON attributes be emitted for produced types and properties ot not
82
82
  *
83
83
  * @exampleMarkdown
84
- * ```yml
84
+ * ```yaml
85
85
  * generates:
86
86
  * src/main/c-sharp/my-org/my-app/Types.cs:
87
87
  * plugins:
@@ -96,7 +96,7 @@ export interface CSharpResolversPluginRawConfig extends RawConfig {
96
96
  * @description Library that should be used to emit JSON attributes. Ignored when `emitJsonAttributes` is `false` or not specified
97
97
  *
98
98
  * @exampleMarkdown
99
- * ```yml
99
+ * ```yaml
100
100
  * generates:
101
101
  * src/main/c-sharp/my-org/my-app/Types.cs:
102
102
  * plugins:
package/index.js CHANGED
@@ -311,7 +311,7 @@ class JsonAttributesSourceConfiguration {
311
311
  }
312
312
  const newtonsoftConfiguration = new JsonAttributesSourceConfiguration('Newtonsoft.Json', 'JsonProperty', 'JsonRequired');
313
313
  // System.Text.Json does not have support of `JsonRequired` alternative (as for .NET 5)
314
- const systemTextJsonConfiguration = new JsonAttributesSourceConfiguration('System.Text.Json', 'JsonPropertyName', null);
314
+ const systemTextJsonConfiguration = new JsonAttributesSourceConfiguration('System.Text.Json.Serialization', 'JsonPropertyName', null);
315
315
  function getJsonAttributeSourceConfiguration(attributesSource) {
316
316
  switch (attributesSource) {
317
317
  case 'Newtonsoft.Json':
package/index.mjs CHANGED
@@ -307,7 +307,7 @@ class JsonAttributesSourceConfiguration {
307
307
  }
308
308
  const newtonsoftConfiguration = new JsonAttributesSourceConfiguration('Newtonsoft.Json', 'JsonProperty', 'JsonRequired');
309
309
  // System.Text.Json does not have support of `JsonRequired` alternative (as for .NET 5)
310
- const systemTextJsonConfiguration = new JsonAttributesSourceConfiguration('System.Text.Json', 'JsonPropertyName', null);
310
+ const systemTextJsonConfiguration = new JsonAttributesSourceConfiguration('System.Text.Json.Serialization', 'JsonPropertyName', null);
311
311
  function getJsonAttributeSourceConfiguration(attributesSource) {
312
312
  switch (attributesSource) {
313
313
  case 'Newtonsoft.Json':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/c-sharp",
3
- "version": "4.2.7",
3
+ "version": "4.2.10",
4
4
  "description": "GraphQL Code Generator plugin for generating CSharp code based on a GraphQL schema",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-codegen/plugin-helpers": "^2.4.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.7.3",
11
+ "@graphql-codegen/visitor-plugin-common": "2.7.5",
12
12
  "change-case-all": "1.0.14",
13
- "tslib": "~2.3.0",
13
+ "tslib": "~2.4.0",
14
14
  "unixify": "^1.0.0"
15
15
  },
16
16
  "repository": "git@github.com:dotansimha/graphql-code-generator.git",