lafrech: BTW, I didn't understand this part of the code. It sounded related but I left it unchanged.

```py
            # marshmallow>=2.7.0 compat
            field.metadata.pop("many", None)
```

Any idea what this is about?
sloria: Thanks! I'm off to do errands but I'll hopefully have some time later today or tomorrow to review.

> I'm gonna get pawned by black.

I really hope https://github.com/pre-commit/pre-commit.github.io/issues/211 becomes a reality...
sloria: > Any idea what this is about?

https://github.com/marshmallow-code/apispec/pull/64 is the PR that added that. I don't recall the rationale, though.. =/
lafrech: I don't see anything related in the 2.7.0 entry of the changelog.
https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst#270-2016-04-04

Removing the line doesn't break any test.
sloria: My guess is it's tied to this change: https://github.com/marshmallow-code/marshmallow/pull/413 , which may result in `many` being added to `field.metadata` (?).
lafrech: Yes, probably.

But I don't think it makes any difference as we only pull a limited list of items from metadata (`VALID_PROPERTIES` + `x-*`).

I'd be tempted to remove it...
sloria: Sure, it's your call. If there's no way for `many` to make it incorrectly into the OAS doc, then it can be removed.
lafrech: One one hand, I'm pretty confident. On the other hand, I don't see what changed since the change was accepted, so if there was a good reason by the time, it should still be valid. I'm still in favor of removing. Happy if @Bangertm has an opinion about this and this PR.
Bangertm: Looks good to me.  Thanks.
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 36548f9..e32ad35 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
 repos:
 - repo: https://github.com/asottile/pyupgrade
-  rev: v1.11.1
+  rev: v1.11.0
   hooks:
   - id: pyupgrade
     exclude: docopt.py
@@ -10,7 +10,7 @@ repos:
   - id: black
     language_version: python3.6
 - repo: https://gitlab.com/pycqa/flake8
-  rev: 3.7.5
+  rev: 3.7.4
   hooks:
   - id: flake8
     additional_dependencies: ['flake8-bugbear==18.8.0; python_version >= "3.5"']
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index c8e3f96..4a5fbde 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -15,6 +15,12 @@ Features:
   from ``Regexp`` validators (:pr:`364`).
   Thanks :user:`DStape` for the PR.
 
+Bug fixes:
+
+- [apispec.ext.marshmallow]: Fix automatic documentation of schemas when
+  using ``Nested(MySchema, many==True)`` (:issue:`383`). Thanks
+  :user:`whoiswes` for reporting.
+
 Other changes:
 
 - *Backwards-incompatible*: Components properties are now passed as dictionaries rather than keyword arguments (:pr:`381`).
diff --git a/apispec/ext/marshmallow/openapi.py b/apispec/ext/marshmallow/openapi.py
index 4bffa36..259d2dd 100644
--- a/apispec/ext/marshmallow/openapi.py
+++ b/apispec/ext/marshmallow/openapi.py
@@ -450,7 +450,7 @@ class OpenAPIConverter(object):
             name = self.schema_name_resolver(schema_cls)
             if not name:
                 try:
-                    return self.schema2jsonschema(schema)
+                    json_schema = self.schema2jsonschema(schema)
                 except RuntimeError:
                     raise APISpecError(
                         "Name resolver returned None for schema {schema} which is "
@@ -459,6 +459,9 @@ class OpenAPIConverter(object):
                         " MarshmallowPlugin returns a string for all circular"
                         " referencing schemas.".format(schema=schema)
                     )
+                if getattr(schema, "many", False):
+                    return {"type": "array", "items": json_schema}
+                return json_schema
             name = get_unique_schema_name(self.spec.components, name)
             self.spec.components.schema(name, schema=schema)
         return self.get_ref_dict(schema_instance)
@@ -649,9 +652,6 @@ class OpenAPIConverter(object):
         if hasattr(Meta, "description"):
             jsonschema["description"] = Meta.description
 
-        if getattr(schema, "many", False):
-            jsonschema = {"type": "array", "items": jsonschema}
-
         return jsonschema
 
     def fields2jsonschema(self, fields, ordered=False, partial=None):
diff --git a/setup.cfg b/setup.cfg
index 9502291..e3ad939 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -12,7 +12,3 @@ ignore = E203, E266, E501, W503
 max-line-length = 110
 max-complexity = 18
 select = B,C,E,F,W,T4,B9
-
-[tool:pytest]
-filterwarnings =
-  ignore::marshmallow.warnings.ChangedInMarshmallow3Warning

Docstring-only schemas incorrectly referenced as arrays?
Tested with Marshmallow 3.0.0rc3 and APISpec 1.0.0rc1.

Took a copy of the APISpec quickstart code and removed the defintions, so that schemas were only being referenced from the docstrings.  I'm seeing that the nested schema is being picked up as an array (incorrect) but then is also referenced as an array from the parent schema (correct).

Example (as short as I can make it, ignoring imports):

```py
spec = APISpec(
    title="Swagger Petstore",
    version="1.0.0",
    openapi_version="3.0.2",
    plugins=[FlaskPlugin(), MarshmallowPlugin()],
)

app = Flask(__name__)

class CategorySchema(Schema):
    id = fields.Int()
    name = fields.Str(required=True)

class PetSchema(Schema):
    category = fields.Nested(CategorySchema, many=True)
    name = fields.Str()

@app.route("/pet")
def random_pet():
    """
    ---
    get:
      responses:
        200:
          content:
            application/json:
              schema: PetSchema
    """
    return jsonify({'foo':'bar'})

@app.route("/category")
def random_category():
    """
    ---
    get:
      responses:
        200:
          content:
            application/json:
              schema: CategorySchema
    """
    return jsonify({'foo':'bar'})

with app.test_request_context():
    spec.path(view=random_pet)
    spec.path(view=random_category)
    print(spec.to_dict()
```
Here's what gets output (note that both the nested reference and the child are both array types):

```py
"schemas": {                                                  
  "Category": {                                               
    "type": "array",                                          
    "items": {                                                
      "type": "object",                                       
      "properties": {                                         
        "id": {"type": "integer", "format": "int32"}                                                     
      }                                                       
    }                                                         
  },                                                          
  "Pet": {                                                    
    "type": "object",                                         
    "properties": {                                           
      "category": {                                           
        "type": "array",                                      
        "items": {                                            
          "$ref": "#/components/schemas/Category"             
        }                                                     
      }                                                       
    }                                                         
  }                                                           
} 
```

I think the issue stems from fields2jsonschema method [here](https://github.com/marshmallow-code/apispec/blob/dev/apispec/ext/marshmallow/openapi.py#L647-L648) where the schema attributes are checked for many=True.  I would expect the schemas themselves would always be referenced as singletons, then references to those schemas would be checked for many.  I certainly might be missing something though, but at least in my lab just commenting out those 2 lines fixed everything.

Alternately, the schemas could be registered as they are in the example, but we try to do everything in docstrings if possible.  So if this is a non-issue feel free to close.

Many thanks for some awesome libraries!


diff --git a/tests/test_ext_marshmallow.py b/tests/test_ext_marshmallow.py
index f474b5f..ce1083d 100644
--- a/tests/test_ext_marshmallow.py
+++ b/tests/test_ext_marshmallow.py
@@ -102,7 +102,6 @@ class TestDefinitionHelper:
 
     @pytest.mark.parametrize("schema", [AnalysisSchema, AnalysisSchema()])
     def test_resolve_schema_dict_auto_reference_return_none(self, schema):
-        # this resolver return None
         def resolver(schema):
             return None
 
@@ -162,6 +161,27 @@ class TestDefinitionHelper:
         assert "Pet" in definitions
         assert "Pet1" in definitions
 
+    def test_resolve_nested_schema_many_true_resolver_return_none(self):
+        def resolver(schema):
+            return None
+
+        class PetFamilySchema(Schema):
+            pets_1 = Nested(PetSchema, many=True)
+            pets_2 = List(Nested(PetSchema))
+
+        spec = APISpec(
+            title="Test auto-reference",
+            version="0.1",
+            openapi_version="2.0",
+            plugins=(MarshmallowPlugin(schema_name_resolver=resolver),),
+        )
+
+        spec.components.schema("PetFamily", schema=PetFamilySchema)
+        props = get_schemas(spec)["PetFamily"]["properties"]
+        pets_1 = props["pets_1"]
+        pets_2 = props["pets_2"]
+        assert pets_1["type"] == pets_2["type"] == "array"
+
 
 class TestComponentParameterHelper:
     @pytest.mark.parametrize("schema", [PetSchema, PetSchema()])
@@ -250,7 +270,8 @@ class TestCustomField:
 
 class TestOperationHelper:
     @pytest.mark.parametrize(
-        "pet_schema", (PetSchema, PetSchema(), "tests.schemas.PetSchema")
+        "pet_schema",
+        (PetSchema, PetSchema(), PetSchema(many=True), "tests.schemas.PetSchema"),
     )
     @pytest.mark.parametrize("spec_fixture", ("2.0",), indirect=True)
     def test_schema_v2(self, spec_fixture, pet_schema):
@@ -268,7 +289,11 @@ class TestOperationHelper:
             },
         )
         get = get_paths(spec_fixture.spec)["/pet"]["get"]
-        reference = get["responses"][200]["schema"]
+        if isinstance(pet_schema, Schema) and pet_schema.many is True:
+            assert get["responses"][200]["schema"]["type"] == "array"
+            reference = get["responses"][200]["schema"]["items"]
+        else:
+            reference = get["responses"][200]["schema"]
         assert reference == {"$ref": ref_path(spec_fixture.spec) + "Pet"}
         assert len(spec_fixture.spec.components._schemas) == 1
         resolved_schema = spec_fixture.spec.components._schemas["Pet"]
@@ -276,7 +301,8 @@ class TestOperationHelper:
         assert get["responses"][200]["description"] == "successful operation"
 
     @pytest.mark.parametrize(
-        "pet_schema", (PetSchema, PetSchema(), "tests.schemas.PetSchema")
+        "pet_schema",
+        (PetSchema, PetSchema(), PetSchema(many=True), "tests.schemas.PetSchema"),
     )
     @pytest.mark.parametrize("spec_fixture", ("3.0.0",), indirect=True)
     def test_schema_v3(self, spec_fixture, pet_schema):
@@ -294,7 +320,16 @@ class TestOperationHelper:
             },
         )
         get = get_paths(spec_fixture.spec)["/pet"]["get"]
-        reference = get["responses"][200]["content"]["application/json"]["schema"]
+        if isinstance(pet_schema, Schema) and pet_schema.many is True:
+            assert (
+                get["responses"][200]["content"]["application/json"]["schema"]["type"]
+                == "array"
+            )
+            reference = get["responses"][200]["content"]["application/json"]["schema"][
+                "items"
+            ]
+        else:
+            reference = get["responses"][200]["content"]["application/json"]["schema"]
 
         assert reference == {"$ref": ref_path(spec_fixture.spec) + "Pet"}
         assert len(spec_fixture.spec.components._schemas) == 1
diff --git a/tests/test_openapi.py b/tests/test_openapi.py
index 41b2298..3a64ef3 100644
--- a/tests/test_openapi.py
+++ b/tests/test_openapi.py
@@ -413,25 +413,16 @@ class TestMarshmallowSchemaToModelDefinition:
         res = openapi.fields2jsonschema(fields_dict)
         assert res["required"] == ["id"]
 
-    def test_schema_instance_inspection(self, openapi):
+    @pytest.mark.parametrize("many", (True, False))
+    def test_schema_instance_inspection(self, openapi, many):
         class UserSchema(Schema):
             _id = fields.Int()
 
-        res = openapi.schema2jsonschema(UserSchema())
+        res = openapi.schema2jsonschema(UserSchema(many=many))
         assert res["type"] == "object"
         props = res["properties"]
         assert "_id" in props
 
-    def test_schema_instance_inspection_with_many(self, openapi):
-        class UserSchema(Schema):
-            _id = fields.Int()
-
-        res = openapi.schema2jsonschema(UserSchema(many=True))
-        assert res["type"] == "array"
-        assert "items" in res
-        props = res["items"]["properties"]
-        assert "_id" in props
-
     def test_raises_error_if_no_declared_fields(self, openapi):
         class NotASchema(object):
             pass
@@ -654,7 +645,7 @@ class TestNesting:
     def test_schema2jsonschema_with_nested_fields_with_adhoc_changes(
         self, spec_fixture
     ):
-        category_schema = CategorySchema(many=True)
+        category_schema = CategorySchema()
         category_schema.fields["id"].required = True
 
         class PetSchema(Schema):
@@ -667,10 +658,10 @@ class TestNesting:
         assert props["Category"] == spec_fixture.openapi.schema2jsonschema(
             category_schema
         )
-        assert set(props["Category"]["items"]["required"]) == {"id", "name"}
+        assert set(props["Category"]["required"]) == {"id", "name"}
 
-        props["Category"]["items"]["required"] = ["name"]
-        assert props["Category"]["items"] == spec_fixture.openapi.schema2jsonschema(
+        props["Category"]["required"] = ["name"]
+        assert props["Category"] == spec_fixture.openapi.schema2jsonschema(
             CategorySchema
         )
 

pip install -e .[dev]
parse_log_pytest
requirements.txt
3.9
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
-e git+https://github.com/marshmallow-code/apispec.git@bf3faf4125d98396912d9c7d3e5bbe55aa179106#egg=apispec
aspy.yaml==1.3.0
attrs==25.3.0
cachetools==5.5.2
certifi==2025.1.31
cfgv==3.4.0
chardet==5.2.0
charset-normalizer==3.4.1
colorama==0.4.6
distlib==0.3.9
entrypoints==0.3
exceptiongroup==1.2.2
filelock==3.18.0
flake8==3.7.5
flake8-bugbear==18.8.0
identify==2.6.9
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jsonschema==4.17.3
jsonschema-spec==0.1.6
lazy-object-proxy==1.10.0
marshmallow==2.18.0
mccabe==0.6.1
mock==5.2.0
nodeenv==1.9.1
openapi-schema-validator==0.4.4
openapi-spec-validator==0.5.7
packaging==24.2
pathable==0.4.4
platformdirs==4.3.7
pluggy==1.5.0
prance==23.6.21.0
pre-commit==1.14.3
pycodestyle==2.5.0
pyflakes==2.1.1
pyproject-api==1.9.0
pyrsistent==0.20.0
pytest==8.3.5
PyYAML==6.0.2
requests==2.32.3
rfc3339-validator==0.1.4
ruamel.yaml==0.18.10
ruamel.yaml.clib==0.2.12
six==1.17.0
toml==0.10.2
tomli==2.2.1
tox==4.25.0
typing_extensions==4.13.0
urllib3==2.3.0
virtualenv==20.29.3
zipp==3.21.0

name: apispec
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - aspy-yaml==1.3.0
      - attrs==25.3.0
      - cachetools==5.5.2
      - certifi==2025.1.31
      - cfgv==3.4.0
      - chardet==5.2.0
      - charset-normalizer==3.4.1
      - colorama==0.4.6
      - distlib==0.3.9
      - entrypoints==0.3
      - exceptiongroup==1.2.2
      - filelock==3.18.0
      - flake8==3.7.5
      - flake8-bugbear==18.8.0
      - identify==2.6.9
      - idna==3.10
      - importlib-metadata==8.6.1
      - iniconfig==2.1.0
      - jsonschema==4.17.3
      - jsonschema-spec==0.1.6
      - lazy-object-proxy==1.10.0
      - marshmallow==2.18.0
      - mccabe==0.6.1
      - mock==5.2.0
      - nodeenv==1.9.1
      - openapi-schema-validator==0.4.4
      - openapi-spec-validator==0.5.7
      - packaging==24.2
      - pathable==0.4.4
      - platformdirs==4.3.7
      - pluggy==1.5.0
      - prance==23.6.21.0
      - pre-commit==1.14.3
      - pycodestyle==2.5.0
      - pyflakes==2.1.1
      - pyproject-api==1.9.0
      - pyrsistent==0.20.0
      - pytest==8.3.5
      - pyyaml==6.0.2
      - requests==2.32.3
      - rfc3339-validator==0.1.4
      - ruamel-yaml==0.18.10
      - ruamel-yaml-clib==0.2.12
      - six==1.17.0
      - toml==0.10.2
      - tomli==2.2.1
      - tox==4.25.0
      - typing-extensions==4.13.0
      - urllib3==2.3.0
      - virtualenv==20.29.3
      - zipp==3.21.0
prefix: /opt/conda/envs/apispec

tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_v2[2.0-pet_schema2] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_v3[3.0.0-pet_schema2] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema_instance_inspection[2.0-True] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema_instance_inspection[3.0.0-True]
tests/test_ext_marshmallow.py::TestDefinitionHelper::test_can_use_schema_as_definition[2.0-PetSchema] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_can_use_schema_as_definition[2.0-schema1] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_can_use_schema_as_definition[3.0.0-PetSchema] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_can_use_schema_as_definition[3.0.0-schema1] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_schema_helper_without_schema[2.0] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_schema_helper_without_schema[3.0.0] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_resolve_schema_dict_auto_reference[AnalysisSchema] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_resolve_schema_dict_auto_reference[schema1] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_resolve_schema_dict_auto_reference_in_list[AnalysisWithListSchema] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_resolve_schema_dict_auto_reference_in_list[schema1] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_resolve_schema_dict_auto_reference_return_none[AnalysisSchema] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_resolve_schema_dict_auto_reference_return_none[schema1] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_warning_when_schema_added_twice[2.0-AnalysisSchema] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_warning_when_schema_added_twice[2.0-schema1] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_warning_when_schema_added_twice[3.0.0-AnalysisSchema] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_warning_when_schema_added_twice[3.0.0-schema1] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_schema_instances_with_different_modifiers_added[2.0] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_schema_instances_with_different_modifiers_added[3.0.0] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_schema_with_clashing_names[2.0] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_schema_with_clashing_names[3.0.0] tests/test_ext_marshmallow.py::TestDefinitionHelper::test_resolve_nested_schema_many_true_resolver_return_none tests/test_ext_marshmallow.py::TestComponentParameterHelper::test_can_use_schema_in_parameter[2.0-PetSchema] tests/test_ext_marshmallow.py::TestComponentParameterHelper::test_can_use_schema_in_parameter[2.0-schema1] tests/test_ext_marshmallow.py::TestComponentParameterHelper::test_can_use_schema_in_parameter[3.0.0-PetSchema] tests/test_ext_marshmallow.py::TestComponentParameterHelper::test_can_use_schema_in_parameter[3.0.0-schema1] tests/test_ext_marshmallow.py::TestComponentResponseHelper::test_can_use_schema_in_response[2.0-PetSchema] tests/test_ext_marshmallow.py::TestComponentResponseHelper::test_can_use_schema_in_response[2.0-schema1] tests/test_ext_marshmallow.py::TestComponentResponseHelper::test_can_use_schema_in_response[3.0.0-PetSchema] tests/test_ext_marshmallow.py::TestComponentResponseHelper::test_can_use_schema_in_response[3.0.0-schema1] tests/test_ext_marshmallow.py::TestCustomField::test_can_use_custom_field_decorator[2.0] tests/test_ext_marshmallow.py::TestCustomField::test_can_use_custom_field_decorator[3.0.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_v2[2.0-PetSchema] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_v2[2.0-pet_schema1] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_v2[2.0-tests.schemas.PetSchema] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_v3[3.0.0-PetSchema] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_v3[3.0.0-pet_schema1] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_v3[3.0.0-tests.schemas.PetSchema] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_expand_parameters_v2[2.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_expand_parameters_v3[3.0.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_uses_ref_if_available_v2[2.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_uses_ref_if_available_v3[3.0.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_uses_ref_if_available_name_resolver_returns_none_v2 tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_uses_ref_if_available_name_resolver_returns_none_v3 tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_uses_ref_in_parameters_and_request_body_if_available_v2[2.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_uses_ref_in_parameters_and_request_body_if_available_v3[3.0.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_array_uses_ref_if_available_v2[2.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_array_uses_ref_if_available_v3[3.0.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_partially_v2[2.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_partially_v3[3.0.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_global_state_untouched_2json[2.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_global_state_untouched_2json[3.0.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_global_state_untouched_2parameters[2.0] tests/test_ext_marshmallow.py::TestOperationHelper::test_schema_global_state_untouched_2parameters[3.0.0] tests/test_ext_marshmallow.py::TestCircularReference::test_circular_referencing_schemas[2.0] tests/test_ext_marshmallow.py::TestCircularReference::test_circular_referencing_schemas[3.0.0] tests/test_ext_marshmallow.py::TestSelfReference::test_self_referencing_field_single[2.0] tests/test_ext_marshmallow.py::TestSelfReference::test_self_referencing_field_single[3.0.0] tests/test_ext_marshmallow.py::TestSelfReference::test_self_referencing_field_many[2.0] tests/test_ext_marshmallow.py::TestSelfReference::test_self_referencing_field_many[3.0.0] tests/test_ext_marshmallow.py::TestOrderedSchema::test_ordered_schema[2.0] tests/test_ext_marshmallow.py::TestOrderedSchema::test_ordered_schema[3.0.0] tests/test_ext_marshmallow.py::TestFieldWithCustomProps::test_field_with_custom_props[2.0] tests/test_ext_marshmallow.py::TestFieldWithCustomProps::test_field_with_custom_props[3.0.0] tests/test_ext_marshmallow.py::TestFieldWithCustomProps::test_field_with_custom_props_passed_as_snake_case[2.0] tests/test_ext_marshmallow.py::TestFieldWithCustomProps::test_field_with_custom_props_passed_as_snake_case[3.0.0] tests/test_ext_marshmallow.py::TestSchemaWithDefaultValues::test_schema_with_default_values[2.0] tests/test_ext_marshmallow.py::TestSchemaWithDefaultValues::test_schema_with_default_values[3.0.0] tests/test_ext_marshmallow.py::TestList::test_list_with_nested[2.0] tests/test_ext_marshmallow.py::TestList::test_list_with_nested[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2choices_preserving_order[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2choices_preserving_order[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Integer-integer] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Number-number] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Float-number] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-String-string0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-String-string1] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Boolean-boolean0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Boolean-boolean1] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-UUID-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-DateTime-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Date-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Time-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Email-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Url-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Field-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[2.0-Raw-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Integer-integer] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Number-number] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Float-number] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-String-string0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-String-string1] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Boolean-boolean0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Boolean-boolean1] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-UUID-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-DateTime-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Date-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Time-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Email-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Url-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Field-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_type[3.0.0-Raw-string] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_formatted_field_translates_to_array[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_formatted_field_translates_to_array[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[2.0-Integer-int32] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[2.0-Float-float] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[2.0-UUID-uuid] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[2.0-DateTime-date-time] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[2.0-Date-date] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[2.0-Email-email] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[2.0-Url-url] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[3.0.0-Integer-int32] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[3.0.0-Float-float] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[3.0.0-UUID-uuid] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[3.0.0-DateTime-date-time] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[3.0.0-Date-date] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[3.0.0-Email-email] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field2property_formats[3.0.0-Url-url] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_description[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_description[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_missing[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_missing[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_boolean_false_missing[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_boolean_false_missing[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_missing_load[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_missing_load[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_boolean_false_missing_load[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_boolean_false_missing_load[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_missing_callable[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_missing_callable[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_doc_default[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_doc_default[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_doc_default_and_missing[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_doc_default_and_missing[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_with_missing_load[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_with_missing_load[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_with_location[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_with_location[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_with_multiple_json_locations[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields2parameters_does_not_modify_metadata[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields2parameters_does_not_modify_metadata[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_location_mapping[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_location_mapping[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_default_location_mapping[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_default_location_mapping[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_default_location_mapping_if_schema_many[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_with_dump_only[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_fields_with_dump_only[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_choices[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_choices[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_equal[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_equal[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_only_allows_valid_properties_in_metadata[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_only_allows_valid_properties_in_metadata[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_choices_multiple[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_choices_multiple[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_additional_metadata[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_additional_metadata[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_allow_none[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_allow_none[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_str_regex[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_str_regex[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_pattern_obj_regex[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_pattern_obj_regex[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_no_pattern[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_no_pattern[3.0.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_multiple_patterns[2.0] tests/test_openapi.py::TestMarshmallowFieldToOpenAPI::test_field_with_multiple_patterns[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_invalid_schema[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_invalid_schema[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema2jsonschema_with_explicit_fields[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema2jsonschema_with_explicit_fields[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema2jsonschema_override_name_ma2[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema2jsonschema_override_name_ma2[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_required_fields[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_required_fields[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_partial[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_partial[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_no_required_fields[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_no_required_fields[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_title_and_description_may_be_added[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_title_and_description_may_be_added[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_excluded_fields[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_excluded_fields[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_only_explicitly_declared_fields_are_translated[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_only_explicitly_declared_fields_are_translated[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_observed_field_name_for_required_field[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_observed_field_name_for_required_field[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema_instance_inspection[2.0-False] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema_instance_inspection[3.0.0-False] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_raises_error_if_no_declared_fields[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_raises_error_if_no_declared_fields[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_field_multiple[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_field_multiple[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_field_required[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_field_required[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_invalid_schema[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_invalid_schema[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_body[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_body_with_dump_only[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_body_many[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_query[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_query[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_query_instance[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_query_instance[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_query_instance_many_should_raise_exception[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_schema_query_instance_many_should_raise_exception[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_fields_default_in_body[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_fields_query[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_fields_query[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_raises_error_if_not_a_schema[2.0] tests/test_openapi.py::TestMarshmallowSchemaToParameters::test_raises_error_if_not_a_schema[3.0.0] tests/test_openapi.py::TestNesting::test_field2property_nested_spec_metadatas[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_spec_metadatas[3.0.0] tests/test_openapi.py::TestNesting::test_field2property_nested_spec[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_spec[3.0.0] tests/test_openapi.py::TestNesting::test_field2property_nested_many_spec[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_many_spec[3.0.0] tests/test_openapi.py::TestNesting::test_field2property_nested_ref[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_ref[3.0.0] tests/test_openapi.py::TestNesting::test_field2property_nested_many[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_many[3.0.0] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_fields[2.0] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_fields[3.0.0] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_fields_only_exclude[2.0-only] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_fields_only_exclude[2.0-exclude] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_fields_only_exclude[3.0.0-only] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_fields_only_exclude[3.0.0-exclude] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_fields_with_adhoc_changes[2.0] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_fields_with_adhoc_changes[3.0.0] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_excluded_fields[2.0] tests/test_openapi.py::TestNesting::test_schema2jsonschema_with_nested_excluded_fields[3.0.0] tests/test_openapi.py::TestNesting::test_nested_field_with_property[2.0] tests/test_openapi.py::TestNesting::test_nested_field_with_property[3.0.0] tests/test_openapi.py::test_openapi_tools_validate_v2 tests/test_openapi.py::test_openapi_tools_validate_v3 tests/test_openapi.py::TestFieldValidation::test_range[2.0] tests/test_openapi.py::TestFieldValidation::test_range[3.0.0] tests/test_openapi.py::TestFieldValidation::test_multiple_ranges[2.0] tests/test_openapi.py::TestFieldValidation::test_multiple_ranges[3.0.0] tests/test_openapi.py::TestFieldValidation::test_list_length[2.0] tests/test_openapi.py::TestFieldValidation::test_list_length[3.0.0] tests/test_openapi.py::TestFieldValidation::test_string_length[2.0] tests/test_openapi.py::TestFieldValidation::test_string_length[3.0.0] tests/test_openapi.py::TestFieldValidation::test_multiple_lengths[2.0] tests/test_openapi.py::TestFieldValidation::test_multiple_lengths[3.0.0] tests/test_openapi.py::TestFieldValidation::test_equal_length[2.0] tests/test_openapi.py::TestFieldValidation::test_equal_length[3.0.0]
CHANGELOG.rst apispec/ext/marshmallow/openapi.py setup.cfg .pre-commit-config.yaml
CHANGELOG.rst apispec/ext/marshmallow/openapi.py setup.cfg .pre-commit-config.yaml