Skip to content

Commit 25407ad

Browse files
Merge pull request #1143 from christianhelle/fix-source-generator
Fix Source Generator not emitting any files
2 parents 029160d + c101318 commit 25407ad

14 files changed

Lines changed: 5040 additions & 78 deletions

src/Refitter.SourceGenerator.Tests/AdditionalFiles/Generated/.g.cs

Lines changed: 737 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
// <auto-generated>
2+
// This code was generated by Refitter.
3+
// </auto-generated>
4+
5+
6+
using Refit;
7+
using System.Collections.Generic;
8+
using System.Text.Json.Serialization;
9+
using System.Threading.Tasks;
10+
11+
#nullable enable annotations
12+
13+
namespace Refitter.Tests.PropertyNamingPolicy
14+
{
15+
/// <summary>Recursive Property Naming API</summary>
16+
[System.CodeDom.Compiler.GeneratedCode("Refitter", "1.0.0.0")]
17+
public partial interface IRecursivePropertyNamingApi
18+
{
19+
/// <returns>Success</returns>
20+
/// <exception cref="ApiException">Thrown when the request returns a non-success status code.</exception>
21+
[Headers("Accept: application/json")]
22+
[Get("/nodes")]
23+
Task<RecursiveNode> GetNode();
24+
25+
}
26+
27+
28+
}
29+
30+
//----------------------
31+
// <auto-generated>
32+
// Generated using the NSwag toolchain v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
33+
// </auto-generated>
34+
//----------------------
35+
36+
#pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended."
37+
#pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
38+
#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?'
39+
#pragma warning disable 612 // Disable "CS0612 '...' is obsolete"
40+
#pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null"
41+
#pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ...
42+
#pragma warning disable 1591 // Disable "CS1591 Missing XML comment for publicly visible type or member ..."
43+
#pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'"
44+
#pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant"
45+
#pragma warning disable 8600 // Disable "CS8600 Converting null literal or possible null value to non-nullable type"
46+
#pragma warning disable 8602 // Disable "CS8602 Dereference of a possibly null reference"
47+
#pragma warning disable 8603 // Disable "CS8603 Possible null reference return"
48+
#pragma warning disable 8604 // Disable "CS8604 Possible null reference argument for parameter"
49+
#pragma warning disable 8625 // Disable "CS8625 Cannot convert null literal to non-nullable reference type"
50+
#pragma warning disable 8765 // Disable "CS8765 Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes)."
51+
52+
namespace Refitter.Tests.PropertyNamingPolicy
53+
{
54+
using System = global::System;
55+
56+
57+
58+
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))")]
59+
public partial class RecursiveNode
60+
{
61+
62+
[JsonPropertyName("node_id")]
63+
public int node_id { get; set; }
64+
65+
[JsonPropertyName("class")]
66+
public string @class { get; set; }
67+
68+
[JsonPropertyName("1st-node")]
69+
public string _1st_node { get; set; }
70+
71+
[JsonPropertyName("child_count")]
72+
public long child_count { get; set; }
73+
74+
[JsonPropertyName("next_node")]
75+
public RecursiveNode next_node { get; set; }
76+
77+
[JsonPropertyName("children")]
78+
public ICollection<RecursiveNode> children { get; set; }
79+
80+
[JsonPropertyName("named_nodes")]
81+
public IDictionary<string, RecursiveNode> named_nodes { get; set; }
82+
83+
[JsonPropertyName("external_node")]
84+
public RecursiveExternalNode external_node { get; set; }
85+
86+
private IDictionary<string, object> _additionalProperties;
87+
88+
[JsonExtensionData]
89+
public IDictionary<string, object> AdditionalProperties
90+
{
91+
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
92+
set { _additionalProperties = value; }
93+
}
94+
95+
}
96+
97+
98+
}
99+
100+
#pragma warning restore 108
101+
#pragma warning restore 114
102+
#pragma warning restore 472
103+
#pragma warning restore 612
104+
#pragma warning restore 649
105+
#pragma warning restore 1573
106+
#pragma warning restore 1591
107+
#pragma warning restore 8073
108+
#pragma warning restore 3016
109+
#pragma warning restore 8600
110+
#pragma warning restore 8602
111+
#pragma warning restore 8603
112+
#pragma warning restore 8604
113+
#pragma warning restore 8625
114+
#pragma warning restore 8765

0 commit comments

Comments
 (0)