12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- {
- "$schema": "http://json-schema.org/draft-07/schema",
- "$id": "https://joystream.org/CreateClass.schema.json",
- "title": "CreateClass",
- "description": "JSON schema to describe a new class for Joystream network",
- "type": "object",
- "additionalProperties": false,
- "required": [
- "name",
- "description",
- "maximum_entities_count",
- "default_entity_creation_voucher_upper_bound"
- ],
- "properties": {
- "name": {
- "type": "string",
- "description": "Name of this class. Required property."
- },
- "description": {
- "type": "string",
- "description": "Description of this class."
- },
- "class_permissions": {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "any_member": { "$ref": "#/definitions/DefaultBoolean" },
- "entity_creation_blocked": { "$ref": "#/definitions/DefaultBoolean" },
- "all_entity_property_values_locked": { "$ref": "#/definitions/DefaultBoolean" },
- "maintainers": {
- "type": "array",
- "uniqueItems": true,
- "items": {
- "type": "integer"
- },
- "default": []
- }
- }
- },
- "maximum_entities_count": { "type": "integer" },
- "default_entity_creation_voucher_upper_bound": { "type": "integer" }
- },
- "definitions": {
- "DefaultBoolean": {
- "type": "boolean",
- "default": false
- }
- }
- }
|