help wantedtype: bug
Metriche repository
- Star
- (1581 stelle)
- Metriche merge PR
- (Merge medio 39g 6h) (1 PR mergiata in 30 g)
Descrizione
Hello!
I'm trying to use this sample code to generate classes from a given json schema:
static void Main(string[] args)
{
var schema = JsonSchema4.FromJsonAsync(GetJsonSchema()).Result;
var settings = new CSharpGeneratorSettings { ClassStyle = CSharpClassStyle.Poco, Namespace = "ns" };
var generator = new CSharpGenerator(schema, settings);
var output = generator.GenerateFile("Foo");
Console.WriteLine("Hello World!");
}
static string GetJsonSchema()
{
var url = "https://raw.githubusercontent.com/Microsoft/vscode-debugadapter-node/master/debugProtocol.json";
var client = new HttpClient();
return client.GetStringAsync(url).Result;
}
output is always an empty class with #pragma and some auto-generated xxx comment.
What is wrong with it?
Thanks!