-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Labels
Description
Expected Behaviour
I am trying to use my CI job to publish jsonschema into markdown pages which are pushed to gh-pages
branch that is hosted at https://buildtesters.github.io/buildtest/. I have links to schemas but right now they are broken because the the jsonschema2md is not getting installed.
Actual Behaviour
I am getting an error during installation of jsonschema2md see https://github.com/buildtesters/buildtest/runs/3292731029?check_suite_focus=true#step:4:1
Run npm install -g @adobe/jsonschema2md
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
/opt/hostedtoolcache/node/14.17.4/x64/bin/jsonschema2md -> /opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/cli.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/@adobe/jsonschema2md/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ @adobe/jsonschema2md@6.1.0
added 653 packages from 342 contributors in 25.67s
loading 6 schemas
writing schemas
writing schemas to /home/runner/work/buildtest/buildtest/out
writing README
building readme
writing documentation
generating markdown
(node:1726) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'longdescription' of undefined
at /opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/lib/markdownBuilder.js:745:48
at Array.map (<anonymous>)
at makeproplist (/opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/lib/markdownBuilder.js:744:61)
at /opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/lib/markdownBuilder.js:809:16
at Array.map (<anonymous>)
at makedefinitions (/opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/lib/markdownBuilder.js:796:10)
at /opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/lib/markdownBuilder.js:866:10
at /opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/node_modules/ferrum/src/sequence.js:1234:12
at /opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/node_modules/ferrum/src/sequence.js:807:5
at each [CURRY] (/opt/hostedtoolcache/node/14.17.4/x64/lib/node_modules/@adobe/jsonschema2md/node_modules/ferrum/src/functional.js:240:12)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1726) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
Reproduce Scenario (including but not limited to)
Here is a CI job that worked https://github.com/buildtesters/buildtest/runs/3210618355.
Steps to Reproduce
Please see my CI file https://github.com/buildtesters/buildtest/blob/devel/.github/workflows/jsonschemadocs.yml
Platform and Version
ubuntu-20.04
jsonschema2md@6.1.0