Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2016 18:36
Show Gist options
  • Save anonymous/015ca9c1dcb8a43b283e03feae30591c to your computer and use it in GitHub Desktop.
Save anonymous/015ca9c1dcb8a43b283e03feae30591c to your computer and use it in GitHub Desktop.
A saved configuration for a schema form example, http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html
[
"*",
{
"type": "submit",
"title": "OK"
}
]
{
"boolean": false,
"contacts": [
{
"notifyby": [
null
]
}
],
"locations": [
{}
],
"servers": [
{
"notify": [
null
],
"ports": [
null
]
}
],
"applications": [
{}
],
"services": [
{}
]
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"code": {
"type": "string",
"id": "code"
},
"monitoring": {
"type": "string",
"id": "monitoring"
},
"ticketing": {
"type": "string",
"id": "ticketing"
},
"contacts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"notifyby": {
"type": "array",
"items": {
"type": "string"
},
"id": "notifyby"
},
"email": {
"type": "string",
"id": "email"
},
"contact": {
"type": "string",
"id": "contact"
},
"number": {
"type": "string",
"id": "number"
},
"name": {
"type": "string",
"id": "name"
}
},
"id": "0",
"required": [
"notifyby",
"email",
"contact",
"number",
"name"
]
},
"id": "contacts"
},
"locations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"city": {
"type": "string",
"id": "city"
},
"name": {
"type": "string",
"id": "name"
},
"lines": {
"type": "string",
"id": "lines"
},
"number": {
"type": "string",
"id": "number"
},
"state": {
"type": "string",
"id": "state"
},
"location": {
"type": "string",
"id": "location"
},
"address": {
"type": "null",
"id": "address"
},
"postal": {
"type": "integer",
"id": "postal"
},
"email": {
"type": "string",
"id": "email"
}
},
"id": "0",
"required": [
"city",
"name",
"lines",
"number",
"state",
"location",
"address",
"postal",
"email"
]
},
"id": "locations"
},
"servers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"function": {
"type": "string",
"id": "function"
},
"server_id": {
"type": "string",
"id": "server_id"
},
"contact": {
"type": "string",
"id": "contact"
},
"notify": {
"type": "array",
"items": {
"type": "string"
},
"id": "notify"
},
"parent": {
"type": "string",
"id": "parent"
},
"ports": {
"type": "array",
"items": {
"type": "integer"
},
"id": "ports"
},
"sla": {
"type": "string",
"id": "sla"
}
},
"id": "0",
"required": [
"function",
"server_id",
"contact",
"notify",
"parent",
"ports",
"sla"
]
},
"id": "servers"
},
"applications": {
"type": "array",
"items": {
"type": "object",
"properties": {
"function": {
"type": "string",
"id": "function"
},
"contact": {
"type": "string",
"id": "contact"
},
"app_id": {
"type": "string",
"id": "app_id"
},
"parent": {
"type": "string",
"id": "parent"
},
"sla": {
"type": "string",
"id": "sla"
}
},
"id": "0",
"required": [
"function",
"contact",
"app_id",
"parent",
"sla"
]
},
"id": "applications"
},
"client": {
"type": "string",
"id": "client"
},
"client_email": {
"type": "string",
"id": "client_email"
},
"key": {
"type": "string",
"id": "key"
},
"date": {
"type": "string",
"id": "date"
},
"services": {
"type": "array",
"items": {
"type": "object",
"properties": {
"function": {
"type": "string",
"id": "function"
},
"service_id": {
"type": "string",
"id": "service_id"
},
"contact": {
"type": "string",
"id": "contact"
},
"sla": {
"type": "string",
"id": "sla"
},
"procs": {
"type": "string",
"id": "procs"
}
},
"id": "0",
"required": [
"function",
"service_id",
"contact",
"sla",
"procs"
]
},
"id": "services"
}
},
"id": "/",
"required": [
"code",
"monitoring",
"ticketing",
"contacts",
"locations",
"servers",
"applications",
"client",
"client_email",
"key",
"date",
"services"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment