Base solution for your next web application
Open Closed

Running 'refresh.bat' file NSwag gives Stack overflow error #12219


User avatar
0
OriAssurant created

After 13.1 merge to our current dev branch , we are getting Stack overflow error while running 'refresh.bat' file to update service-proxes.ts file

Anyone seen this kind of error before or any ideas on this error. Please suggest Thanks


1 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi OriAssurant

    If your model classes have circular references (e.g., a property in Class A references Class B, and Class B references Class A), NSwag may struggle to generate the schema. Try using [JsonIgnore] or [SwaggerIgnore] attributes on properties that create circular references.