ordered is part of the Meta of a schema
InsidersByte opened this issue · comments
Jonathon Mills-Kelly commented
ordered is part of Meta see https://marshmallow.readthedocs.io/en/stable/marshmallow.schema.html#marshmallow.schema.Schema.Meta, however it is currently pulled from the schema see https://github.com/marshmallow-code/apispec/blob/dev/src/apispec/ext/marshmallow/openapi.py#L180
Work around
import marshmallow
class Foo(marshmallow.Schema):
class Meta:
ordered = True
ordered = True