Created
September 25, 2017 08:13
-
-
Save afm-sayem/5f2ec980f876128d6d277694888ad9d2 to your computer and use it in GitHub Desktop.
Json-schema import definitions
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
{ | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"$id": "/home/username/projects/projectname/server/api/country/country.schema.json", | |
"properties": { | |
"active": {"type": "boolean"}, | |
"created_at": {"$ref": "../base/definitions.schema.json#/datetime"} , | |
"currency": { | |
"faker": "finance.currencyCode", | |
"maxLength": 255, | |
"minLength": 1, | |
"type": "string" | |
}, | |
"language": { | |
"faker": "random.word", | |
"maxLength": 255, | |
"minLength": 1, | |
"type": "string" | |
}, | |
"name": {"$ref": "../base/definitions.schema.json#/name"}, | |
"updated_at": {"$ref": "../base/definitions.schema.json#/datetime"} | |
}, | |
"required": ["name"], | |
"type": "object" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment