diff --git a/apispec/ext/marshmallow/openapi.py b/apispec/ext/marshmallow/openapi.py
index b18a21a..a254079 100644
--- a/apispec/ext/marshmallow/openapi.py
+++ b/apispec/ext/marshmallow/openapi.py
@@ -447,25 +447,22 @@ class OpenAPIConverter(object):
 
         :param schema: schema to add to the spec
         """
-
-        schema_cls = self.resolve_schema_class(schema)
-        name = self.schema_name_resolver(schema_cls)
-
-        if not name:
-            try:
-                return self.schema2jsonschema(schema)
-            except RuntimeError:
-                raise APISpecError(
-                    'Name resolver returned None for schema {schema} which is '
-                    'part of a chain of circular referencing schemas. Please'
-                    ' ensure that the schema_name_resolver passed to'
-                    ' MarshmallowPlugin returns a string for all circular'
-                    ' referencing schemas.'.format(schema=schema),
-                )
-
         schema_instance = resolve_schema_instance(schema)
         schema_key = make_schema_key(schema_instance)
         if schema_key not in self.refs:
+            schema_cls = self.resolve_schema_class(schema)
+            name = self.schema_name_resolver(schema_cls)
+            if not name:
+                try:
+                    return self.schema2jsonschema(schema)
+                except RuntimeError:
+                    raise APISpecError(
+                        'Name resolver returned None for schema {schema} which is '
+                        'part of a chain of circular referencing schemas. Please'
+                        ' ensure that the schema_name_resolver passed to'
+                        ' MarshmallowPlugin returns a string for all circular'
+                        ' referencing schemas.'.format(schema=schema),
+                    )
             name = get_unique_schema_name(self.spec.components, name)
             self.spec.components.schema(
                 name,

diff --git a/tests/test_ext_marshmallow.py b/tests/test_ext_marshmallow.py
index 72271ad..4437a29 100644
--- a/tests/test_ext_marshmallow.py
+++ b/tests/test_ext_marshmallow.py
@@ -425,6 +425,66 @@ class TestOperationHelper:
             spec_fixture.spec,
         ) + 'Pet'
 
+    def test_schema_uses_ref_if_available_name_resolver_returns_none_v2(self):
+        def resolver(schema):
+            return None
+        spec = APISpec(
+            title='Test auto-reference',
+            version='0.1',
+            openapi_version='2.0',
+            plugins=(
+                MarshmallowPlugin(schema_name_resolver=resolver,),
+            ),
+        )
+        spec.components.schema('Pet', schema=PetSchema)
+        spec.path(
+            path='/pet',
+            operations={
+                'get': {
+                    'responses': {
+                        200: {
+                            'schema': PetSchema,
+                        },
+                    },
+                },
+            },
+        )
+        get = get_paths(spec)['/pet']['get']
+        assert get['responses'][200]['schema']['$ref'] == ref_path(spec) + 'Pet'
+
+    def test_schema_uses_ref_if_available_name_resolver_returns_none_v3(self):
+        def resolver(schema):
+            return None
+        spec = APISpec(
+            title='Test auto-reference',
+            version='0.1',
+            openapi_version='3.0.0',
+            plugins=(
+                MarshmallowPlugin(schema_name_resolver=resolver,),
+            ),
+        )
+        spec.components.schema('Pet', schema=PetSchema)
+        spec.path(
+            path='/pet',
+            operations={
+                'get': {
+                    'responses': {
+                        200: {
+                            'content': {
+                                'application/json': {
+                                    'schema': PetSchema,
+                                },
+                            },
+                        },
+                    },
+                },
+            },
+        )
+        get = get_paths(spec)['/pet']['get']
+        assert get['responses'][200]['content']['application/json']['schema']['$ref'] == ref_path(
+            spec,
+        ) + 'Pet'
+
     @pytest.mark.parametrize('spec_fixture', ('2.0', ), indirect=True)
     def test_schema_uses_ref_in_parameters_and_request_body_if_available_v2(self, spec_fixture):
         spec_fixture.spec.components.schema('Pet', schema=PetSchema)
diff --git a/tests/test_openapi.py b/tests/test_openapi.py
index df990b3..a8b83b5 100644
--- a/tests/test_openapi.py
+++ b/tests/test_openapi.py
@@ -648,6 +648,20 @@ class TestNesting:
 
         assert props['category']['items'] == {'$ref': ref_path(spec_fixture.spec) + 'Category'}
 
+    @pytest.mark.parametrize('modifier', ('only', 'exclude'))
+    def test_schema2jsonschema_with_nested_fields_only_exclude(self, spec_fixture, modifier):
+        class Child(Schema):
+            i = fields.Int()
+            j = fields.Int()
+
+        class Parent(Schema):
+            child = fields.Nested(Child, **{modifier: ('i', )})
+
+        spec_fixture.openapi.schema2jsonschema(Parent)
+        props = get_definitions(spec_fixture.spec)['Child']['properties']
+        assert ('i' in props) == (modifier == 'only')
+        assert ('j' not in props) == (modifier == 'only')
+
     def test_schema2jsonschema_with_nested_fields_with_adhoc_changes(self, spec_fixture):
         category_schema = CategorySchema(many=True)
         category_schema.fields['id'].required = True

Should marshmallow helpers respect `only`, `exclude`?
When introspecting `Nested` fields, we don't check for the `only` or `exclude` attributes. For example:

``` python
class FooSchema(Schema):
    bar = fields.Str()
    baz = fields.Str()

class BobSchema(Schema):
    foo = fields.Nested(FooSchema, only=('bar', ))
```

If we call `schema2jsonschema(BobSchema)`, the nested `foo` will include `bar` and `baz` fields, even though `baz` will never be included in this case. Which isn't necessarily a problem, unless `baz` is required:

``` python
class FooSchema(Schema):
    bar = fields.Str()
    baz = fields.Str(required=True)
```

In this case, users of apispec will likely return JSON that wouldn't validate against the definition schema, since there's going to be a missing required field. I haven't actually encountered this situation, and I don't know how often it's going to come up--just wanted to raise for discussion.

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::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::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_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::TestSelfReference::test_self_referencing_with_ref[2.0] tests/test_ext_marshmallow.py::TestSelfReference::test_self_referencing_with_ref[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::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] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema_instance_inspection[3.0.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema_instance_inspection_with_many[2.0] tests/test_openapi.py::TestMarshmallowSchemaToModelDefinition::test_schema_instance_inspection_with_many[3.0.0] 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_field2property_nested_self_without_name_raises_error[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_self_without_name_raises_error[3.0.0] tests/test_openapi.py::TestNesting::test_field2property_nested_self[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_self[3.0.0] tests/test_openapi.py::TestNesting::test_field2property_nested_self_many[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_self_many[3.0.0] tests/test_openapi.py::TestNesting::test_field2property_nested_self_ref_with_meta[2.0] tests/test_openapi.py::TestNesting::test_field2property_nested_self_ref_with_meta[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]