* Use require modifier instead of setting null-suppressed default values * Only remove read-only properties when IgnoreReadOnlyProperties is set * Obsolete UmbracoPath property and remove work-around for obsolete setter
11 lines
354 B
C#
11 lines
354 B
C#
using CommandLine;
|
|
|
|
await Parser.Default.ParseArguments<Options>(args).WithParsedAsync(async options =>
|
|
{
|
|
// Generate CMS schema
|
|
var jsonSchemaGenerator = new UmbracoJsonSchemaGenerator();
|
|
var jsonSchema = jsonSchemaGenerator.Generate(typeof(UmbracoCmsSchema));
|
|
|
|
await File.WriteAllTextAsync(options.OutputFile, jsonSchema.ToJson());
|
|
});
|