Skip to main content

information-rules module

[ hcs-9 - Poll Metadata Schema ]Direct link to [ hcs-9 - Poll Metadata Schema ]

The information-rules module defines the rules around the update action. The information action is defined under hcs-8.

{
"schema" - the schema that defines the structure of this module
"permissions" - array of permissions-module which defines who is allowed to use the update action
"rules" - an array of rules that govern the update action
}

information-rules diagram

The JSON Schema file can be found on here: information-rules.json

FieldsDirect link to Fields

schemaDirect link to schema

Tags: required, case-insensitive

"schema" : { "type" : "string" }

The schema field defines the schema that is being used. It is any identifiable string about the standard or platform that the data follows. A developer who wishes to implement the schema will use the schema to filter data that they support and process it appropriately.

For the hcs-9 standard, the schema is defined as hcs-9.

permissionsDirect link to permissions

Tags: optional, module

Permissions is an array of modules that define who is allowed to perform the update action.

Permissions are used for this purpose for every action. This specification implements a number of default permission modules. This is covered in more detail on the Permissions page.

Default Behaviour

If permissions is not defined, no user is allowed to manage.

rulesDirect link to rules

Tags: optional

Rules is an array of rules that define additional behaviours, if needed.