diff --git a/fixtures/lint/noun-pass.yaml b/fixtures/lint/noun-pass.yaml index 4cdda4f..51f65bf 100644 --- a/fixtures/lint/noun-pass.yaml +++ b/fixtures/lint/noun-pass.yaml @@ -41,3 +41,28 @@ paths: responses: '204': description: Response description + /cust/{custId}/product/{productId}: + get: + summary: Test operation + description: Test operation description + operationId: test-cust + tags: + - Test + parameters: + - name: custId + in: path + required: true + description: some parameter + schema: + type: string + pattern: /[a-z]+/ + - name: productId + in: path + required: true + description: some parameter + schema: + type: string + pattern: /[a-z]+/ + responses: + '204': + description: Response description diff --git a/isp-functions/noun-deps.js b/isp-functions/noun-deps.js index 8a43ba9..e9b5f2c 100644 --- a/isp-functions/noun-deps.js +++ b/isp-functions/noun-deps.js @@ -29,7 +29,7 @@ module.exports = targetValue => { // Split into path pieces ignoring blank/empty ones and params. let pieces = targetValue.split('/').filter(i => !!i); - if ((pieces.length === 1 && pieces[0] === 'search') || pieces[0] === 'me') { + if ((pieces.length === 1 && pieces[0] === 'search') || pieces[0] === 'me' || pieces[0] === 'cust') { // Top-level exceptions. Skip. return; }