forked from tangled.org/core
this repo has no description

Fix lexicon schema for refUpdate

Broken down the nested object declarations into individual declarations since lexicon schemas forbid nested declarations, tested with atcute's lexicon codegen.

I changed the name of `pair` to `individualLanguageSize` as the previous name didn't make it obvious as for what the object was for, slight breaking change but it seems fine given that this lexicon schema wasn't working prior and that the object isn't being used in any unions.

Changed files
+59 -52
lexicons
+59 -52
lexicons/git/refUpdate.json
···
"maxLength": 40
},
"meta": {
-
"type": "object",
-
"required": [
-
"isDefaultRef",
-
"commitCount"
-
],
-
"properties": {
-
"isDefaultRef": {
-
"type": "boolean",
-
"default": "false"
-
},
-
"langBreakdown": {
-
"type": "object",
-
"properties": {
-
"inputs": {
-
"type": "array",
-
"items": {
-
"type": "ref",
-
"ref": "#pair"
-
}
-
}
-
}
-
},
-
"commitCount": {
-
"type": "object",
-
"required": [],
-
"properties": {
-
"byEmail": {
-
"type": "array",
-
"items": {
-
"type": "object",
-
"required": [
-
"email",
-
"count"
-
],
-
"properties": {
-
"email": {
-
"type": "string"
-
},
-
"count": {
-
"type": "integer"
-
}
-
}
-
}
-
}
-
}
-
}
-
}
}
}
}
},
-
"pair": {
"type": "object",
-
"required": [
-
"lang",
-
"size"
-
],
"properties": {
"lang": {
"type": "string"
},
"size": {
"type": "integer"
}
}
···
"maxLength": 40
},
"meta": {
+
"type": "ref",
+
"ref": "#meta"
+
}
+
}
+
}
+
},
+
"meta": {
+
"type": "object",
+
"required": ["isDefaultRef", "commitCount"],
+
"properties": {
+
"isDefaultRef": {
+
"type": "boolean",
+
"default": false
+
},
+
"langBreakdown": {
+
"type": "ref",
+
"ref": "#langBreakdown"
+
},
+
"commitCount": {
+
"type": "ref",
+
"ref": "#commitCountBreakdown"
+
}
+
}
+
},
+
"langBreakdown": {
+
"type": "object",
+
"properties": {
+
"inputs": {
+
"type": "array",
+
"items": {
+
"type": "ref",
+
"ref": "#individualLanguageSize"
}
}
}
},
+
"individualLanguageSize": {
"type": "object",
+
"required": ["lang", "size"],
"properties": {
"lang": {
"type": "string"
},
"size": {
+
"type": "integer"
+
}
+
}
+
},
+
"commitCountBreakdown": {
+
"type": "object",
+
"required": [],
+
"properties": {
+
"byEmail": {
+
"type": "array",
+
"items": {
+
"type": "ref",
+
"ref": "#individualEmailCommitCount"
+
}
+
}
+
}
+
},
+
"individualEmailCommitCount": {
+
"type": "object",
+
"required": ["email", "count"],
+
"properties": {
+
"email": {
+
"type": "string"
+
},
+
"count": {
"type": "integer"
}
}