Skip to content

Instantly share code, notes, and snippets.

@afm-sayem
Created September 25, 2017 08:13
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 afm-sayem/5f2ec980f876128d6d277694888ad9d2 to your computer and use it in GitHub Desktop.
Save afm-sayem/5f2ec980f876128d6d277694888ad9d2 to your computer and use it in GitHub Desktop.
Json-schema import definitions
{
"$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