Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api display error #6924

Closed
Alan-Lun opened this issue Feb 9, 2021 · 1 comment
Closed

Api display error #6924

Alan-Lun opened this issue Feb 9, 2021 · 1 comment

Comments

@Alan-Lun
Copy link

Alan-Lun commented Feb 9, 2021

Q&A (please complete the following information)

  • OS: windows
  • Browser: edge
  • Version: 88.0.705.63
  • Method of installation: Nuget
  • Swagger-UI version:
- Swagger/OpenAPI version: [OpenAPI 3.0]

Content & configuration

?yourQueryStringConfig

Describe the bug you're encountering

API expected display 68267599263309460 and 68267599263309459

But Swagger View display 68267599263309460 and 68267599263309460

To reproduce...

Steps to reproduce the behavior:

    <PackageReference Include="NJsonSchema" Version="10.3.4" />
    <PackageReference Include="NSwag.AspNetCore" Version="13.10.2" />
    <PackageReference Include="NSwag.Core" Version="13.10.2" />
[HttpGet]
        public ActionResult<TestLong> Get()
        {
            var data = new TestLong();
            data.Data = new List<long>();
            data.Data.Add(68267599263309460);
            data.Data.Add(68267599263309459);
            return this.Ok(data);
        }
public class TestLong
    {
        public List<long> Data { get; set; }

    }

Expected behavior

API expected display 68267599263309460 and 68267599263309459

But Swagger View display 68267599263309460 and 68267599263309460

Screenshots

https://imgur.com/OFsB4Jw

Additional context or thoughts

@hkosova
Copy link
Contributor

hkosova commented Feb 9, 2021

Duplicate of #2030.

@hkosova hkosova closed this as completed Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants