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

Range Error #1442

Open
apostrophesoftware opened this issue Jul 8, 2018 · 3 comments
Open

Range Error #1442

apostrophesoftware opened this issue Jul 8, 2018 · 3 comments

Comments

@apostrophesoftware
Copy link

Hello

I am using NSwagStudio version 11.17.19.0 to generate a C# class for the attached swagger json file

The generated class has the following error : [System.ComponentModel.DataAnnotations.Range(0, Liquid error: Exception has been thrown by the target of an invocation.)] is this due to the following line in the json and if so how should I resolve the problem? "attachmentCount":{"type":"integer","format":"int32","readOnly":true,"minimum":0.0,"maximum":9.223372036854776E18}

The json is generated by a third party.

Thanks
Dave

swagger.zip

@RicoSuter
Copy link
Owner

I think the maximum value cannot be parsed to decimal and thats why it shows this error

@RicoSuter
Copy link
Owner

Ref: RicoSuter/NJsonSchema#676

@apostrophesoftware
Copy link
Author

Thanks, I will pass that onto the developers of the API and see if it can be resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants