Hi all, we have some web apis that recieve a guid from the url and model bind it to an entity. Until aspnet core 2.1 we could use a type mapper as follows:
swaggerUiOwinSettings.TypeMappers.Add(new PrimitiveTypeMapper(entityType, s => s.Type = JsonObjectType.String));
app.UseSwaggerUi(typeof(Startup).Assembly, swaggerUiOwinSettings);
Which just shows the route parameter but hides all properties from the mapped type.
Recently we startet a new aspnet core 3 web api and tried the same procedure as follows:
Hi all, we have some web apis that recieve a guid from the url and model bind it to an entity. Until aspnet core 2.1 we could use a type mapper as follows:
Which just shows the route parameter but hides all properties from the mapped type.
Recently we startet a new aspnet core 3 web api and tried the same procedure as follows:
I now correctly get a BusinessId property but also every property from the mapped 'Wafer' type which where hidden when using type mappers in core 2.1.
So how do I hide the mapped model properties in the UI when using aspnet core 3?