Skip to content

Instantly share code, notes, and snippets.

@pirogoeth
Created April 2, 2019 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirogoeth/422c48dd5fc3dfdddc9951074fca68b9 to your computer and use it in GitHub Desktop.
Save pirogoeth/422c48dd5fc3dfdddc9951074fca68b9 to your computer and use it in GitHub Desktop.
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