OxygenFramework/Oxygen.jl

Autogenerated Swagger docs only show the last method defined for a path.

Closed this issue · 1 comments

This happens in registerchema:

    schema["paths"][cleanedpath] = route 

which wholesale replaces any previous dictionary with the one generated here, which only has the current method defined.

I think the easiest fix is to merge any existing dictionary at schema["paths"][cleanedpath] into route before this.

@wnoise Great catch! Thanks for reading through and finding the bug. I'll make sure to address this in the next patch