Created
April 16, 2015 20:10
-
-
Save cds-amal/8ee98a6059f6e135292f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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