Created
July 12, 2018 09:57
-
-
Save gberche-orange/4372ee238633bdf507d3d53175598102 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"type": "object", | |
"title": "test", | |
"required": [ | |
"name", | |
"Description", | |
"bindable", | |
"simpleUrl" | |
], | |
"validationMessages": { | |
"required": "This field is required." | |
}, | |
"properties": { | |
"name": { | |
"id": "Name", | |
"title": "Name", | |
"type": "string", | |
"pattern": "^[a-zA-Z]+$", | |
"description": "name of the service instance should contain only letters", | |
"validationMessages": { | |
"pattern": "Only letters" | |
}, | |
"options": { | |
"dependencies": [ | |
{ | |
"id": "Description", | |
"value": "ok" | |
} | |
] | |
} | |
}, | |
"Description": { | |
"id": "Description", | |
"title": "Description", | |
"type": "string", | |
"maxLength": 20, | |
"validationMessages": { | |
"pattern": "max 20 characters" | |
} | |
}, | |
"bindable": { | |
"id": "bindable", | |
"title": "bindable", | |
"type": "boolean" | |
}, | |
"simpleUrl": { | |
"id": "simpleUrl", | |
"title": "simpleUrl", | |
"description": "A-Z", | |
"type": "string", | |
"pattern": "[0-9A-Za-z-]+", | |
"validationMessages": { | |
"pattern": "A-Z invalid" | |
} | |
}, | |
"email": { | |
"id": "Email", | |
"title": "Email", | |
"type": "string", | |
"pattern": "^\\S+@\\S+$", | |
"validationMessages": { | |
"pattern": "Invalid Email." | |
} | |
}, | |
"directory": { | |
"id": "directory", | |
"title": "directory", | |
"type": "string", | |
"pattern": "^(.+)/([^/]+)$", | |
"default": "/var/vcap/store/cassandra", | |
"validationMessages": { | |
"pattern": "Invalid directory." | |
} | |
}, | |
"title": { | |
"type": "string", | |
"enum": [ | |
"dr", | |
"jr", | |
"sir", | |
"mrs", | |
"mr", | |
"NaN", | |
"dj" | |
] | |
}, | |
"arr": { | |
"type": "array", | |
"minItems": 2, | |
"items": { | |
"type": "object", | |
"properties": { | |
"site": { | |
"type": "string" | |
}, | |
"url": { | |
"type": "boolean" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment