Created
April 2, 2019 20:03
-
-
Save pirogoeth/422c48dd5fc3dfdddc9951074fca68b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Item(mongoengine.Document): | |
@raygun.openapi_schema | |
class Schema(object): | |
id = schema.Int() | |
name = schema.String(required=True) | |
created_at = schema.DateTime() | |
name = mongoengine.StringField(required=True) | |
created_at = mongoengine.DateTimeField(default=datetime.utcnow) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment