Add JSON schemas for DistroMeta and ServerMeta.
JSON schemas are used by editors to validate data and provide useful insights. The JSON schemas will be generated by the init root command. They can also be generated using the generate schemas command. The JSON files will reference the schemas on the user's local disk rather than hosted versions. This allows offline editing and ensures that the schema is exactly one-to-one with the local version of Nebula. Existing servers will have to manually add the schema property. To see how to do this, generate a new server and copy the $\schema value. The schema property will need to be added to any existing distrometa files. This is the same format as the server meta, just replace ServerMeta with DistroMeta. More information, including sample files with json schemas, is provided on the README.
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
"node-stream-zip": "^1.11.3",
|
||||
"toml": "^3.0.0",
|
||||
"triple-beam": "^1.3.0",
|
||||
"ts-json-schema-generator": "^0.73.0",
|
||||
"winston": "^3.3.3",
|
||||
"yargs": "^16.0.3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user