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
Nice analysis of the problem! I think dropping the titles there shouldn't be an issue, but the solution to type sortBy as a string feels like a loss of information. Is there a better Swagger way to express/document that it should be column or column:ASC/column:DESC?
When processing the Swagger definition to generate Golang SDK using the Swagger codegen we encountered two issues:
sortBy
property of thePaginatedMetaDocumented
class contains the following definition of the items here:The result of the code generation uses item type "Object", which is invalid in Golang and breaks the code.
Replacing this definition with the following works properly by creating Golang type string of strings (
SortBy [][]string
):PaginatedDocumented
class containstitle
for themeta
andlinks
properties here:This forces Swagger document to wrap the type in
allOf
construct. See the discussion here.Removing the
title
from the declaration makes the Swagger definition use direct reference of the types:The text was updated successfully, but these errors were encountered: