Example 1: required
@Anxious Addax
man what is this I was just checking the spelling of 'required'
Example 2: C# form required attribute
@Html.TextBoxFor(m => m.ShortName,
new { @class = "form-control", placeholder = "short name", required="required"})
Example 3: required
{
"id": "ServiceDescription",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "service ID, e.g., \"com.webos.sync.service\" . Every service has a unique ID."
},
"description": {
"type": "string",
"description": "It describes the service description."
},
"version": {
"type": "string",
"description": "It shows the version of the service."
},
"schemaVersion": {
"type": "string",
"description": "It just describes the version of the schema."
},
"services": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "It descrbies the service name"
},
"description": {
"type": "string",
"description": "service description"
},
"type": {
"type": "string",
"description": "it can be either JS service or external service",
"enum": ["JS", "Native"]
},
"isDynamicService": {
"type": "boolean",
"default": false,
"description": "If true, then serviceType is dynamic else serviceType is static."
},
"acgTrustLevel": {
"type": "string",
"enum": [
"oem",
"dev",
"part"
],
"description": "service trust level"
},
"allowedNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "It list out the multiple service names ."
},
"outbound": {
"type": "array",
"items": {
"type": "string"
},
"description": "It describes Array of services that this service is allowed to send requests to."
},
"isPrivileged": {
"type": "boolean",
"default": false,
"description": "If true then type is prilieged else type is regular."
},
"requiredPermissions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Specifies the security groups required to run the service."
},
"Commands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "it gives absolute path of api of the service"
},
"description": {
"type": "string",
"description": "it gives the api description"
},
"groups": {
"type": "array",
"items": {
"type": "string"
},
"description": "each api is placed into set of groups. it just list out the group names"
}
},
"description": "Pair of name and groups",
"required": ["name", "groups"]
},
"description": "Array of functions of that service"
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "it descibes group name"
},
"description": {
"type": "string",
"description": "it describes the group information"
},
"acgTrustLevel": {
"type": "string",
"enum": [
"oem",
"dev",
"part"
],
"description": "it descibes group trust level"
}
},
"description": "Pair of name and acgTrustLevel",
"required": ["name", "acgTrustLevel"]
},
"description": "Array of groups"
}
},
"description": "set of name, type, isDynamicService ,requiredPermissions, Commands and groups",
"required": ["name", "type", "isDynamicService", "requiredPermissions", "Commands", "groups"]
},
"description": "Array of services"
}
},
"required": [
"id",
"services",
"schemaVersion"
]
}