xref: /haiku/src/apps/haikudepot/server/schema/dumpexportreference.json (revision 4b3c808edaaf626e7ee6cb0ee9d21dc96b173ee6)
1{
2  "$schema": "http://json-schema.org/schema#",
3  "id": "http://depot.haiku-os.org/schema/reference/dumpreference.json",
4  "title": "Reference",
5  "javaType": "org.haiku.haikudepotserver.reference.model.dumpexport.DumpExportReference",
6  "type": "object",
7  "properties": {
8    "naturalLanguages": {
9      "type": "array",
10      "items": {
11        "type": "object",
12        "javaType": "org.haiku.haikudepotserver.reference.model.dumpexport.DumpExportReferenceNaturalLanguage",
13        "properties": {
14          "code": {
15            "type": "string"
16          },
17          "languageCode": {
18            "type": "string",
19            "pattern": "^[a-z]{2,3}$"
20          },
21          "countryCode": {
22            "type": "string",
23            "pattern": "^[A-Z0-9]{2,3}$"
24          },
25          "scriptCode": {
26            "type": "string",
27            "pattern": "^[A-Z]+$"
28          },
29          "name": {
30            "type": "string"
31          },
32          "isPopular": {
33            "type": "boolean"
34          },
35          "hasData": {
36            "type": "boolean",
37            "description": "True if there are any user ratings or localizations present for this language."
38          },
39          "hasLocalizationMessages": {
40            "type": "boolean",
41            "description": "True if there are localizations for the HaikuDepotServer application present for this language."
42          }
43        }
44      }
45    },
46    "pkgCategories": {
47      "type": "array",
48      "items": {
49        "type": "object",
50        "javaType": "org.haiku.haikudepotserver.reference.model.dumpexport.DumpExportReferencePkgCategory",
51        "properties": {
52          "code": {
53            "type": "string"
54          },
55          "name": {
56            "type": "string"
57          }
58        }
59      }
60    },
61    "userRatingStabilities": {
62      "type": "array",
63      "items": {
64        "type": "object",
65        "javaType": "org.haiku.haikudepotserver.reference.model.dumpexport.DumpExportReferenceUserRatingStability",
66        "properties": {
67          "code": {
68            "type": "string"
69          },
70          "name": {
71            "type": "string"
72          },
73          "ordering": {
74            "type": "integer"
75          }
76        }
77      }
78    },
79    "countries": {
80      "type": "array",
81      "items": {
82        "type": "object",
83        "javaType": "org.haiku.haikudepotserver.reference.model.dumpexport.DumpExportReferenceCountry",
84        "properties": {
85          "code": {
86            "type": "string"
87          },
88          "name": {
89            "type": "string"
90          }
91        }
92      }
93    }
94  }
95}