mesg-foundation / js-sdk

Javascript mono-repo with all the tools to interact with MESG
https://mesg.com
4 stars 4 forks source link

Add json schema validation for processes #167

Closed antho1404 closed 4 years ago

antho1404 commented 4 years ago

Add json schema file for the process to validate the user's definition. This provides fast user-friendly errors when compiling and can also be used for autocompletion/validation in IDE.

Example in the settings in VSCode

"yaml.schemas": {
    "https://raw.githubusercontent.com/mesg-foundation/js-sdk/6bc372d21491c8456af4955f57cd669463fecd44/packages/compiler/src/schema/process.json": "*.yml"
}