Skip to content

nbgv install creates version.json with potentially incompatible schema reference #897

Description

@daniel-svard

When using nbgv install, the URL for the $schema field in the generated version.json is hardcoded to reference the version.schema.json in the master branch (which seems to be redirected to the main branch). This can be confusing as it may guide the user to edit version.json in a manner that is incompatible with the installed version of nbgv, if the schema has been changed since the release was made.

I got bitten by this using the latest (3.5.119) version and trying to use the release.tagName setting. It took me a while to figure out that the feature is yet to be released, however the IDE happily let me use it since it is in the schema. I got confused when running nbgv prepare-release would remove the field in the updated version.json files. It would have been nice with a validation error instead of just ignoring the unknown field.

I suppose it can be a bit tricky to implement, but the generated version.json should preferably reference the correct version of the schema as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions