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
Right now, I believe Dict fields are renderd as a generic Swagger object without further info of the dictionary values' schema. The code in Flask-Rebar is here.
Let's say we have the following Marshmallow schema:
We have been using a custom converter to work around this, see code snippet here. We can reasonably get to a point where we keep unfurling the definition of ComplexModel directly in-line within additionalProperties, like:
Right now, I believe Dict fields are renderd as a generic Swagger
object
without further info of the dictionary values' schema. The code in Flask-Rebar is here.Let's say we have the following Marshmallow schema:
Based on Swagger 2.0 docs, the canonical way to define a String -> ComplexModel dictionary would be:
But, Flask-rebar will only render it as:
We have been using a custom converter to work around this, see code snippet here. We can reasonably get to a point where we keep unfurling the definition of
ComplexModel
directly in-line withinadditionalProperties
, like:but it will be ideal to get to a point where it makes a reference to the definition.
The text was updated successfully, but these errors were encountered: