Project

General

Profile

Actions

Bug #21073

closed

Update api doc tool chain

Added by Alexis Mousset over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

it is currently broken in 6.1 too:

[2022-05-07T00:17:30.670Z] + make

[2022-05-07T00:17:30.672Z] rm -rf build target

[2022-05-07T00:17:30.672Z] # Prepare all sources in build/ dir

[2022-05-07T00:17:30.672Z] mkdir -p build target/webapp

[2022-05-07T00:17:30.672Z] cp -r ../webapp/sources/api-doc build/webapp

[2022-05-07T00:17:30.672Z] mkdir -p build/webapp/assets

[2022-05-07T00:17:30.672Z] cp -r assets/. build/webapp/assets

[2022-05-07T00:17:30.672Z] ./build.py webapp build target

[2022-05-07T00:17:31.296Z] /usr/local/lib/node_modules/@redocly/openapi-cli/lib/utils.js:45

[2022-05-07T00:17:31.297Z]     return config.apiDefinitions[aliasOrPath] || aliasOrPath;

[2022-05-07T00:17:31.297Z]                                 ^

[2022-05-07T00:17:31.297Z] 

[2022-05-07T00:17:31.297Z] TypeError: Cannot read properties of undefined (reading 'build/webapp/openapi.yml')

[2022-05-07T00:17:31.297Z]     at getAliasOrPath (/usr/local/lib/node_modules/@redocly/openapi-cli/lib/utils.js:45:33)

[2022-05-07T00:17:31.297Z]     at /usr/local/lib/node_modules/@redocly/openapi-cli/lib/utils.js:52:19

[2022-05-07T00:17:31.297Z]     at Generator.next (<anonymous>)

[2022-05-07T00:17:31.297Z]     at /usr/local/lib/node_modules/@redocly/openapi-cli/lib/utils.js:8:71

[2022-05-07T00:17:31.297Z]     at new Promise (<anonymous>)

[2022-05-07T00:17:31.297Z]     at __awaiter (/usr/local/lib/node_modules/@redocly/openapi-cli/lib/utils.js:4:12)

[2022-05-07T00:17:31.297Z]     at /usr/local/lib/node_modules/@redocly/openapi-cli/lib/utils.js:49:61

[2022-05-07T00:17:31.297Z]     at Array.map (<anonymous>)

[2022-05-07T00:17:31.297Z]     at /usr/local/lib/node_modules/@redocly/openapi-cli/lib/utils.js:49:40

[2022-05-07T00:17:31.297Z]     at Generator.next (<anonymous>)

[2022-05-07T00:17:31.297Z] Building version 12 from build/webapp/openapi.src.yml

[2022-05-07T00:17:31.297Z] Built build/webapp/openapi.yml

[2022-05-07T00:17:31.297Z] Could not build target/webapp/12/openapi.yml

[2022-05-07T00:17:31.297Z] make: *** [Makefile:11: webapp] Error 1

script returned exit code 2
Actions #1

Updated by Alexis Mousset over 2 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #2

Updated by Alexis Mousset over 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/4260
Actions #3

Updated by Alexis Mousset over 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Vincent MEMBRÉ over 2 years ago

  • Fix check changed from To do to Checked
Actions #5

Updated by Vincent MEMBRÉ over 2 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF