Skip to content

Instantly share code, notes, and snippets.

@cds-amal
Created April 16, 2015 20:10
Show Gist options
  • Save cds-amal/8ee98a6059f6e135292f to your computer and use it in GitHub Desktop.
Save cds-amal/8ee98a6059f6e135292f to your computer and use it in GitHub Desktop.
from jsl import StringField, IntField
from .skeleton import Skeleton
class Procurement(Skeleton):
'''Example to show how to inherit/extend an entity.
This class will generate this schema: https://crow-schema.herokuapp.com/#procurement.json
'''
class Options(object):
title = 'Procurement'
definition_id = 'procurement'
description = 'Procurement definition, as defined by...'
pin = StringField(description='pin needed to identify this contract')
money = IntField(description='cost associated with this agreement/contract')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment