Open wafflespeanut opened 5 years ago
While developing I don't care about the domain it will be hosted, In order to provide it correctly spec would need to be aware of the host. It might be too much. But still I would like generacted client to allow me to set base_url.
If all the registered paths share a common base path, then we can split that out and set that to
basePath
field in the spec. I suggest adding a methodnormalize
topaperclip::v2::models::GenericApi
whichmem::replace
s and iterates overpaths
map to determines the base path. Whilst doing that, it also callsnormalize
method on the (OperationMap
) values before adding it to the new map and setting it back inpaths
field.