Added schema.json

This commit is contained in:
cyi1341 2023-08-28 23:00:43 +08:00
parent 243ad02435
commit aa5484373a
2 changed files with 105 additions and 1 deletions

View File

@ -16,6 +16,5 @@ This project is still under development. Future updates will include features fr
- A more detailed README, including credits
- Addition of a license
- Inclusion of other portal data, from image links to portal mods
- Mobile compatibility (currently, the script may not work on mobile)
Please note that this list is not exhaustive and more features may be added based on user feedback and project requirements.

View File

@ -0,0 +1,105 @@
{
"title": "Portal",
"type": "object",
"properties": {
"Portal Name": {
"type": "string"
},
"Level": {
"type": "integer"
},
"Team": {
"type": "string",
"enum": [
"Neutral",
"Resistance",
"Enlightened",
"_MACHINA_",
"Unknown"
]
},
"Health": {
"type": "integer"
},
"Resonators": {
"type": "integer"
},
"Links": {
"type": "integer"
},
"Fields": {
"type": "integer"
},
"AP": {
"type": "integer"
},
"Latitude": {
"type": "number"
},
"Longitude": {
"type": "number"
},
"Image URL": {
"type": "string"
},
"GUID": {
"type": "string"
},
"Incoming Links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"GUID": {
"type": "string"
},
"Latitude": {
"type": "number"
},
"Longitude": {
"type": "number"
},
"Portal Name": {
"type": "string"
}
}
}
},
"Outgoing Links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"GUID": {
"type": "string"
},
"Latitude": {
"type": "number"
},
"Longitude": {
"type": "number"
},
"Portal Name": {
"type": "string"
}
}
}
}
},
"required": [
"Portal Name",
"Level",
"Team",
"Health",
"Resonators",
"Links",
"Fields",
"AP",
"Latitude",
"Longitude",
"Image URL",
"GUID",
"Incoming Links",
"Outgoing Links"
]
}