Skip to content

Test io-pack against Schema  #564

@foxriver76

Description

@foxriver76

We could test the io-package against the current Schema, then we have our single point of truth in Schema and only need to test stuff which cannot be validated by the schema additionally

Extended test cases to test io-package.json against the schema https://github.com/ioBroker/ioBroker.js-controller/blob/master/schemas/io-package.json

This ensures that an error not addressed or detected in VSCode or a similar environment does not result in a release on GitHub and NPM.
It also prevents additional implementation effort for checks in the repochecker.

To implement this, we can use this package https://www.npmjs.com/package/jsonschema

describe(`Check contents of io-package.json`, () => {

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions