Skip to content

Commit

Permalink
Merge pull request #307 from snyk/docs-for-api-deprecation
Browse files Browse the repository at this point in the history
docs: add documentation for deprecating old API versions
  • Loading branch information
colethienes authored Nov 10, 2023
2 parents 08ab37f + 31f3d1d commit d7d0f9e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,15 @@ output:

A new version of `vervet` will automatically be generated for Github and `npm` when new features
are introduced, i.e. when commits are merged that are marked with `feat:`.

## Deprecating a version
After removing the endpoint version code and specs, you may see this issue:
```
ENOENT: no such file or directory, open '.../spec.yaml'
```
To solve this:
1. Temporarily ignore the endpoint version code in `.vervet.yaml`
2. Remove the endpoint versions from `catalog-info.yaml`
3. Remove the old OpenAPI specs.

[Example PR](https://github.com/snyk/registry/pull/33489/files)

0 comments on commit d7d0f9e

Please sign in to comment.