Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
RFC: Remove extracting reference from field metadata #354
Currently the Marshmallow plugin looks for 'ref' key containing a JSON reference path in field. An example from the tests:
class PetSchema(Schema): category = fields.Nested(CategorySchema, many=True, ref='#/definitions/Category')
This functionality seems to be redundant with the plugin's ability to store automatically store references. It also seems like it is a more fragile way to pass reference information into the spec.
This code block extracts the reference and can probably be completely removed because the unbound self referencing case does not occur when a schema instance is passed to