Migrate to use new api-lint and api-doc CI tools

Description

As explained at FOLIO-3231, every backend module which has API descriptions, using RAML or OpenAPI (OAS), needs to migrate to the new CI facilities (api-lint and api-doc). The old facilities are out-of-date, deprecated, and have vulnerabilities.

There are instructions at each documentation, including examples to modify the Jenkinsfile.

As noted in the api-lint documentation, the new tool is more thorough than our previous CI tool (based on raml-cop and its underlying raml-1-parser). So some projects might find new violations being reported (see some migration issues at FOLIO-3017).

For mod-inventory-storage most of the 52 API descriptions yield no errors. However there are two noted at FOLIO-3017 which do have violations (required media-type for 200 body response).

Also note that someone partially configured api-doc last month (missing the Jenkinsfile declaration for the required properties). This causes failures for the generation of API documentation during each merge to mainline branch (see the Jenkins artifact ApiDocReport). So no API documentation has been updated since 2022-02-15.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Oleksii Petrenko March 30, 2022 at 9:07 PM

Deployed to Lotus BF. Please proceed with verification

Marc Johnson March 23, 2022 at 12:48 PM

As this has been back ported and released in a patch version targeted at Lotus, I've added the Lotus R1 2022 Bug Fix as the release.

David Crossley March 23, 2022 at 12:42 AM

David Crossley March 7, 2022 at 2:47 PM

Wow, should be a straight-forward task.

Charlotte Whitt March 7, 2022 at 1:25 PM

- I gave this work a P3 priority.

I have changed the development team to be Falcon, while this is work/changes done by and . Do you agree?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Falcon

Fix versions

Release

Lotus (R1 2022) Bug Fix

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created March 6, 2022 at 11:42 PM
Updated June 14, 2022 at 5:39 PM
Resolved March 22, 2022 at 11:50 AM
TestRail: Cases
TestRail: Runs