code.gitea.io/gitea@v1.21.7/tests/integration/schemas/nodeinfo_2.1.json (about) 1 { 2 "$schema": "http://json-schema.org/draft-04/schema#", 3 "id": "http://nodeinfo.diaspora.software/ns/schema/2.1#", 4 "description": "NodeInfo schema version 2.1.", 5 "type": "object", 6 "additionalProperties": false, 7 "required": [ 8 "version", 9 "software", 10 "protocols", 11 "services", 12 "openRegistrations", 13 "usage", 14 "metadata" 15 ], 16 "properties": { 17 "version": { 18 "description": "The schema version, must be 2.1.", 19 "enum": [ 20 "2.1" 21 ] 22 }, 23 "software": { 24 "description": "Metadata about server software in use.", 25 "type": "object", 26 "additionalProperties": false, 27 "required": [ 28 "name", 29 "version" 30 ], 31 "properties": { 32 "name": { 33 "description": "The canonical name of this server software.", 34 "type": "string", 35 "pattern": "^[a-z0-9-]+$" 36 }, 37 "version": { 38 "description": "The version of this server software.", 39 "type": "string" 40 }, 41 "repository": { 42 "description": "The url of the source code repository of this server software.", 43 "type": "string" 44 }, 45 "homepage": { 46 "description": "The url of the homepage of this server software.", 47 "type": "string" 48 } 49 } 50 }, 51 "protocols": { 52 "description": "The protocols supported on this server.", 53 "type": "array", 54 "minItems": 1, 55 "items": { 56 "enum": [ 57 "activitypub", 58 "buddycloud", 59 "dfrn", 60 "diaspora", 61 "libertree", 62 "ostatus", 63 "pumpio", 64 "tent", 65 "xmpp", 66 "zot" 67 ] 68 } 69 }, 70 "services": { 71 "description": "The third party sites this server can connect to via their application API.", 72 "type": "object", 73 "additionalProperties": false, 74 "required": [ 75 "inbound", 76 "outbound" 77 ], 78 "properties": { 79 "inbound": { 80 "description": "The third party sites this server can retrieve messages from for combined display with regular traffic.", 81 "type": "array", 82 "minItems": 0, 83 "items": { 84 "enum": [ 85 "atom1.0", 86 "gnusocial", 87 "imap", 88 "pnut", 89 "pop3", 90 "pumpio", 91 "rss2.0", 92 "twitter" 93 ] 94 } 95 }, 96 "outbound": { 97 "description": "The third party sites this server can publish messages to on the behalf of a user.", 98 "type": "array", 99 "minItems": 0, 100 "items": { 101 "enum": [ 102 "atom1.0", 103 "blogger", 104 "buddycloud", 105 "diaspora", 106 "dreamwidth", 107 "drupal", 108 "facebook", 109 "friendica", 110 "gnusocial", 111 "google", 112 "insanejournal", 113 "libertree", 114 "linkedin", 115 "livejournal", 116 "mediagoblin", 117 "myspace", 118 "pinterest", 119 "pnut", 120 "posterous", 121 "pumpio", 122 "redmatrix", 123 "rss2.0", 124 "smtp", 125 "tent", 126 "tumblr", 127 "twitter", 128 "wordpress", 129 "xmpp" 130 ] 131 } 132 } 133 } 134 }, 135 "openRegistrations": { 136 "description": "Whether this server allows open self-registration.", 137 "type": "boolean" 138 }, 139 "usage": { 140 "description": "Usage statistics for this server.", 141 "type": "object", 142 "additionalProperties": false, 143 "required": [ 144 "users" 145 ], 146 "properties": { 147 "users": { 148 "description": "statistics about the users of this server.", 149 "type": "object", 150 "additionalProperties": false, 151 "properties": { 152 "total": { 153 "description": "The total amount of on this server registered users.", 154 "type": "integer", 155 "minimum": 0 156 }, 157 "activeHalfyear": { 158 "description": "The amount of users that signed in at least once in the last 180 days.", 159 "type": "integer", 160 "minimum": 0 161 }, 162 "activeMonth": { 163 "description": "The amount of users that signed in at least once in the last 30 days.", 164 "type": "integer", 165 "minimum": 0 166 } 167 } 168 }, 169 "localPosts": { 170 "description": "The amount of posts that were made by users that are registered on this server.", 171 "type": "integer", 172 "minimum": 0 173 }, 174 "localComments": { 175 "description": "The amount of comments that were made by users that are registered on this server.", 176 "type": "integer", 177 "minimum": 0 178 } 179 } 180 }, 181 "metadata": { 182 "description": "Free form key value pairs for software specific values. Clients should not rely on any specific key present.", 183 "type": "object", 184 "minProperties": 0, 185 "additionalProperties": true 186 } 187 } 188 }