Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added handling for description in model definitions #93

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Added handling for description in model definitions #93

merged 1 commit into from
Oct 13, 2016

Conversation

martinlatrille
Copy link
Contributor

Allow to set a description when declaring a definition of a Schema (as described here).

spec.definition(
    'Pet',
    schema=PetSchema,
    description="An animal which lives with humans."
)
"Pet": {
    "description": "An animal which lives with humans.",
    "properties": {...},
    ...
}

@sloria
Copy link
Member

sloria commented Oct 13, 2016

Looks good. Thanks!

@sloria sloria merged commit c136f77 into marshmallow-code:dev Oct 13, 2016
@martinlatrille martinlatrille deleted the definition-description branch October 13, 2016 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants