Sebastian Stehle
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
backend/src/Squidex/Areas/Api/Config/OpenApi/OpenApiServices.cs
|
|
|
@ -63,13 +63,15 @@ namespace Squidex.Areas.Api.Config.OpenApi |
|
|
|
services.AddTransient<SchemasOpenApiGenerator>(); |
|
|
|
} |
|
|
|
|
|
|
|
public static void ConfigureName<T>(this T settings) where T : OpenApiDocumentGeneratorSettings |
|
|
|
private static void ConfigureName<T>(this T settings) where T : OpenApiDocumentGeneratorSettings |
|
|
|
{ |
|
|
|
settings.Title = "Squidex API"; |
|
|
|
} |
|
|
|
|
|
|
|
public static void ConfigureSchemaSettings<T>(this T settings) where T : OpenApiDocumentGeneratorSettings |
|
|
|
{ |
|
|
|
settings.AllowReferencesWithProperties = true; |
|
|
|
|
|
|
|
settings.TypeMappers = new List<ITypeMapper> |
|
|
|
{ |
|
|
|
CreateStringMap<Instant>(JsonFormatStrings.DateTime), |
|
|
|
|