Closed vasiles closed 1 month ago
I run into same issue?
System.TypeLoadException:“Could not load type 'NJsonSchema.JsonObjectType' from assembly 'NJsonSchema, Version=11.0.0.0, Culture=neutral, PublicKeyToken=c2f9c3bdfae56102'.”
I meet the same problem Launcher directory: C:\Users\xxxx.nuget\packages\nswag.msbuild\14.0.7\tools\Net80 5>System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. 5> ---> System.MissingMethodException: Method not found: 'Void NJsonSchema.JsonSchema.set_Type(NJsonSchema.JsonObjectType)'.
at MyCompany.NSwag.AddChannelHeaderParametersFilter.Process(OperationProcessorContext context)
Seems that the code throwing error is your code. You are probably referencing an old version of NSwag/NJsonSchema somewhere.
Hi, I have a controller and generate the spec from it with OperationProcessor. With v13.20, everything was fine. I add an operation like this:
.. operation.Parameters.Add(new OpenApiParameter { Name = "name", Kind = OpenApiParameterKind.Header, Schema = new NJsonSchema.JsonSchema { Type = NJsonSchema.JsonObjectType.String }, Description = "description", IsRequired = false, }); ..
After upgrading to v14.0.3, I get the following error.
Any idea what is going on @RicoSuter
thnx