Added forms config

This commit is contained in:
Bjarke Berg
2021-06-24 15:18:00 +02:00
parent f7bbef6efb
commit cc99c3be16
4 changed files with 15 additions and 1 deletions

View File

@@ -10,5 +10,6 @@
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<add key="UmbracoCoreMyGet" value="https://www.myget.org/F/umbracocore/api/v3/index.json" />
<add key="SmidgeAppVeyor" value="https://ci.appveyor.com/nuget/smidge" />
<add key="Umbraco Nightly" value="https://www.myget.org/F/umbraconightly/api/v3/index.json" />
</packageSources>
</configuration>

View File

@@ -1,4 +1,6 @@
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Forms.Core.Configuration;
using SecuritySettings = Umbraco.Cms.Core.Configuration.Models.SecuritySettings;
namespace JsonSchema
{
@@ -52,7 +54,17 @@ namespace JsonSchema
/// </summary>
public class FormsDefinition
{
public FormDesignSettings FormDesign { get; set; }
public PackageOptionSettings Options { get; set; }
public SecuritySettings Security { get; set; }
public FieldTypesDefinition FieldTypes { get; set; }
public class FieldTypesDefinition
{
public DatePickerSettings DatePicker { get; set; }
public Recaptcha2Settings Recaptcha2 { get; set; }
public Recaptcha3Settings Recaptcha3 { get; set; }
}
}
/// <summary>

View File

@@ -10,6 +10,7 @@
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="NJsonSchema" Version="10.4.4" />
<PackageReference Include="System.Xml.XPath.XmlDocument" Version="4.3.0" />
<PackageReference Include="Umbraco.Forms" Version="9.0.0-preview20210614.65556" />
</ItemGroup>
<ItemGroup>

View File

@@ -9,7 +9,7 @@ namespace JsonSchema
{
private class Options
{
[Option('o', "outputFile", Required = false, HelpText = "Set path of the output file.", Default = "../../../../Umbraco.Web.UI.NetCore/umbraco/config/appsettings-schema.json")]
[Option('o', "outputFile", Required = false, HelpText = "Set path of the output file.", Default = "../Umbraco.Web.UI.NetCore/umbraco/config/appsettings-schema.json")]
public string OutputFile { get; set; }
[Option('d', "definitionPrefix", Required = false, HelpText = "Set prefix used for all definisions.", Default = "umbraco")]