Skip to content

Commit

Permalink
docs: add JSON schema for moddle schema
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Feb 26, 2024
1 parent 110b5fe commit 6509312
Show file tree
Hide file tree
Showing 4 changed files with 318 additions and 16 deletions.
104 changes: 104 additions & 0 deletions docs/moddle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"name",
"prefix",
"uri",
"types"
],
"properties": {
"name": {
"type": "string"
},
"types": {
"type": "array",
"items": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"superClass": {
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"type": "array",
"items": {
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"isAttr": {
"type": "boolean"
},
"isId": {
"type": "boolean"
},
"isMany": {
"type": "boolean"
},
"isReference": {
"type": "boolean"
},
"default": {
"type": [
"boolean",
"number",
"string"
]
},
"redefines": {
"type": "string"
}
}
}
}
}
}
},
"xml": {
"type": "object",
"properties": {
"tagAlias": {
"const": "lowerCase"
},
"typePrefix": {
"type": "string"
}
}
},
"associations": {
"type": "array"
},
"enumarations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"literalValues": {
"type": "array",
"items": {
"properties": {
"name": {
"type": "string"
}
}
}
}
}
}
}
}
}

0 comments on commit 6509312

Please sign in to comment.