Skip to content

Added handling for description in model definitions#93

Merged
sloria merged 1 commit intomarshmallow-code:devfrom
gorgias:definition-description
Oct 13, 2016
Merged

Added handling for description in model definitions#93
sloria merged 1 commit intomarshmallow-code:devfrom
gorgias:definition-description

Conversation

@martinlatrille
Copy link
Copy Markdown
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
Copy Markdown
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