Trying to view the swaggerdefinition of the litium admin API but get this error.
Could it be something we messaed up in sour solution or is this i known bug that is fixed i later versions?
There is no problem viewing the ERP API
its a litium 7.4.2 accelerator from the start so no upgrade but we have now upgraded to litium 7.6.1
Now locking in the log i see this error that possible can be related.
The name ‘FieldOption.ProductArea.Antall-løp’ is not matching the allowed pattern ‘[1]+$’.
System.Exception: The name 'FieldOption.ProductArea.Antall-løp' is not matching the allowed pattern '^[a-zA-Z0-9\.\-_]+$'.
at Litium.Web.OpenApi.Extensions.TypeExtensions.GetSchemaId(KeyValuePair`2 item)
at Litium.Web.OpenApi.Controllers.OpenApiDocumentBuilderImpl.<>c.<SortOpenApiItems>b__28_3(KeyValuePair`2 x)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Litium.Web.OpenApi.Controllers.OpenApiDocumentBuilderImpl.SortOpenApiItems(OpenApiDocument document)
at Litium.Web.OpenApi.Controllers.OpenApiDocumentBuilderImpl.Build()
at Litium.Web.OpenApi.Controllers.OpenApiController.Invoke[T](String collection, String apiVersion, Decimal oasVersion)
at Litium.Web.OpenApi.Controllers.OpenApiController.GetOpenApiJson(String collection, String apiVersion)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
After removing 20+ field with non-allowed chars i got the swagger ui working.
I have reported it as a bug that you can set a field Id that is now allowed