Activities of "alex@livemobility.com"

Hi ABP Team

Do you have a starter template for lepton which can be used on figma or adobe xd?

Thanks Alex

Hi, Thanks for the support. In the meantime I should use your provided solution with MyAbpStringToEnumConverter ?

Hi,

Thanks for your analysis. This solution only fixes the swagger UI, which now shows Enums as strings, but the serialization is still done as int. An example below, that property should have been returned as a string.

In a vanilla asp core + swagger project, this is fixed by using
services.AddControllers().AddJsonOptions(options => { options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()); });

I created a new zip:

Hi, yes there is

Hi, sorry about posting the project to the wrong ticket.

I checked the build and it looks like you guys didn't fix the base template ( I reported a bug regarding this a long time ago )

Please change in Acme.BookStore.HttpApi.Host.csproj

<ItemGroup> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="3.0.-" /> </ItemGroup>

to <ItemGroup> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="3.0.0" /> </ItemGroup>

Hi

Hi,

I waas trying to say that this documentation is not up to date: https://docs.abp.io/en/abp/latest/Testing

Hi,

Thanks for the initial input

I added this in

        context.Services.AddOptions&lt;JsonOptions&gt;()
      .Configure&lt;IServiceProvider&gt;((options, rootServiceProvider) =>
      {
          options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
      });

in ConfigureServices, at the end. Still, this didn't transform the enums into strings

Hi,

thanks for the input. Your statement contradicts a bit what we have here: https://docs.abp.io/en/abp/latest/Tutorials/Part-4?UI=NG&DB=EF#testing-the-bookappservice

Also, this documentation is not up to date: https://docs.abp.io/en/abp/latest/Testing

Is it possible to get some explanation about why there was a change in approach?

Showing 1 to 10 of 27 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11