# org.atgrp.rule

A group rule, written by the group in the members space. Reports can cite it by URI.

A record in the spec for Atmosphere Groups. The page: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-rule/

- Named in the spec: 13.2 Record types (https://www.atmospheregroups.org/spec/#record-types); 13.3 Permission sets (https://www.atmospheregroups.org/spec/#permission-sets)
- In the spec's repository: https://tangled.org/atmospheregroups.org/spec/blob/0885261c9cd1af80e89908571f926c2d0c71771f/lexicons/org/atgrp/rule.json
- Published under the same name: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-rule/, the same schema
- The reference host's version: fyi.opensocial.rule, https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-rule/

## The schema in the spec

```json
{
  "lexicon": 1,
  "id": "org.atgrp.rule",
  "defs": {
    "main": {
      "type": "record",
      "description": "A group rule, written by the group in the members space. Reports can cite it by URI.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": [
          "title",
          "text"
        ],
        "properties": {
          "title": {
            "type": "string",
            "maxGraphemes": 64,
            "maxLength": 640
          },
          "text": {
            "type": "string",
            "maxGraphemes": 2000,
            "maxLength": 20000
          },
          "order": {
            "type": "integer",
            "minimum": 0,
            "description": "Display order, ascending."
          }
        }
      }
    }
  }
}
```
