Nish26
Nish26
CC#
Created by Nish26 on 12/28/2023 in #help
Stack overflow in swagger
I have a .net core 7.0 based web api project. I am trying to add a model to it that will be stored in mongodb. Model will have a property BsonDcoument to store some additional data that doesn't fit to schema as described on https://mongodb.github.io/mongo-csharp-driver/2.8/examples/mixing_static_and_dynamic/. However, as soon as I add a property of type BsonDocument on model, there is an stack over flow in the swagger "Stack overflow. at System.ModuleHandle.ResolveType(System.Runtime.CompilerServices.QCallModule, Int32, IntPtr, Int32, IntPtr, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack) at System.ModuleHandle.ResolveTypeHandle(Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[]) at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[]) at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.MetadataToken, System.Reflection.MetadataImport ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, ListBuilder`1<System.Object> ByRef, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef)........"
1 replies