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
Add extra fields to a definition #110
Sometimes, I need to add a field to a definition.
I created a specific definition helper for that, but I think it could be in apispec itself. There is nothing specific in it. So here's the PR.
I first added this to marshmallow plugin
This feature is pretty permissive. A more conservative approach would be to allow only fields that conform to the spec: a finite hardcoded list à la
I'd be happy to hear your feedback about this.
I agree. For maintainability, I think it's best that apispec not try too hard to validate inputs. Perhaps we should add some docco that mentions this...