Commit Graph
3 Commits
Author SHA1 Message Date
Lauri Ojansivu ced5263a47 Repair macOS test and release workflow regressions 2026-09-22 09:46:48 +03:00
Lauri Ojansivu 8ae15efffb Fix Node suite failures after calendar and translation updates
Restore backend configuration parity, resolve static calendar enum imports in OpenAPI generation, and parse Unicode property escapes without executing JavaScript. Preserve logical popup anchors and physical dragging. Protect reviewed source terms during filling, restore native examples and labels, and update stale guards while retaining the explicit unresolved Sardinian review. Add enum, dragging and filling regression coverage.
2026-09-13 14:06:01 +03:00
Lauri Ojansivu cfaf71d22e Fix the release bump job: the generated OpenAPI spec was not valid YAML.
The bump job of release-all.yml (.tools/wekan13, run 93672173482)
regenerates public/api/wekan.yml with openapi/generate_openapi.py and then
renders it with @redocly/cli, which stopped the release with
"Error: bad indentation of a mapping entry in public/api/wekan.yml
(1232:2)". A @param whose description continues on the next JSDoc lines -
models/exportCharts.js's chartKey, "one of dashboard, burndown, ...
controlChart, ..." - was emitted under `description: |` with only its
FIRST line indented; the continuation lines landed at column 1, which is
no longer inside the block scalar, so the whole spec failed to parse.
print_openapi_param now indents every line of the description.

The same job warned "unknown type object / allowed values: string,
number, boolean, integer, array, file" four times for the rules API's
trigger/action params. OpenAPI 2.0 has no `object` for a path/query/form
parameter; those are now emitted as `type: string` / `format: json`
(the REST API takes them as JSON in a string), and `object` no longer
warns.

Reproduced locally (PyYAML: "expected <block end>, but found '<scalar>'
... line 1232, column 2"); after the fix the spec parses and
`npx @redocly/cli build-docs` - the exact step that failed - renders it.
tests/openapiParamMultiline.test.cjs pins the emitter and, where python3
with PyYAML is available (it is in CI), parses the regenerated spec.

Thanks to xet7 !
2026-09-11 13:16:47 +03:00