Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes an [issue reported on Zulip](https://napari.zulipchat.com/#narrow/stream/309872-plugins/topic/napari.20plugin.20manifest.20schema/near/386669802) by @seankmartin. Basically there was a small error in the generated manifest json schema: ``` ❯ check-jsonschema --check-metaschema _schema.json Schema validation errors were encountered. _schema.json::$.definitions.ConfigurationProperty.properties.type.anyOf[1].minItems: True is not of type 'integer' _schema.json::$.definitions.Draft06JsonSchema.properties.type.anyOf[1].minItems: True is not of type 'integer' _schema.json::$.definitions.Draft07JsonSchema.properties.type.anyOf[1].minItems: True is not of type 'integer' ``` The root of the problem is here, where `min_items` is set to `True` instead of an integer. https://github.com/napari/npe2/blob/80ca5feb501dd25d36ecf1313f94d80366d25b8e/src/npe2/manifest/contributions/_json_schema.py#L24C3-L24C3 The first commit here adds a check of the schema in CI using [check-jsonschema](https://github.com/python-jsonschema/check-jsonschema). Then the second commit should fix the underlying issue. cc: @nclack
- Loading branch information