marshmallow-code / apispec

A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..

Home Page:https://apispec.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ordered is part of the Meta of a schema

InsidersByte opened this issue · comments

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