You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stackoverflow when using the copy constructor of an OpenApiSchema. #1095
The "perpetrator" is the property "AdditionalProperties", this in itself is also a schema but is "copied" with AdditionalProperties = new(schema?.AdditionalProperties); so if null the constructor is again called the original parameter 'schema' and when not null it calls the constructor with AdditionalProperties as a parameter, and this is repeated untill it encounters a null and crashes.
Expected behavior
I expected to get a new OpenApiSchema with the properties from the baseSchema and the explicitly set new properties.
Activity
MaggieKimani1 commentedon Dec 6, 2022
Thank you for reporting this. This is definitely a bug caused by an oversight on our part.
MaggieKimani1 commentedon Dec 6, 2022
Update: this is now fixed in 1.4.5