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

CSP Request Details

None

CSP Rejection Details

None

CSP Approved

None

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).

Relevant parties: and

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

David Crossley May 5, 2022 at 2:05 AM

Thanks. merged and verified.

 

Siarhei Hrabko May 4, 2022 at 10:22 AM

done

David Crossley April 10, 2022 at 3:50 AM

See pull/572 where i have configured the new tools.

Would someone please fix the JSON errors as described in the previous comment, and then update the git submodule in that branch.

David Crossley April 10, 2022 at 3:35 AM

All current errors arise from incorrect Boolean values in some JSON Schema in the "acq-models" git submodule.

Some objects have the correct form:
{{"type": "boolean", "default": false}}

while others have the incorrect form using quotes around the boolean value:
{{"type": "boolean", "default": "false"}}

ramls/acq-models/mod-orders/schemas/checkinCollection.json – line 70
ramls/acq-models/mod-orders/schemas/receivingCollection.json – line 61
ramls/acq-models/mod-orders-storage/schemas/ongoing.json – line 13
ramls/acq-models/mod-orders-storage/schemas/piece.json – line 46
ramls/acq-models/mod-orders-storage/schemas/receiving_history.json – line 36

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Thunderjet

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created April 10, 2022 at 3:35 AM
Updated May 5, 2022 at 2:06 AM
Resolved May 5, 2022 at 2:06 AM
TestRail: Cases
TestRail: Runs