mountPath for middleware is not supporting array or regex
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
Research direction
Start with the UI5 CLI configuration validation that reports Configuration server/customMiddleware/1/mountPath, using the provided ui5.yaml middleware example to reproduce the failure. Check how mountPath is validated and verify that the requested array and regex forms are accepted without the current type error.
Written by the indexing model from the issue text.
Description
Expected Behavior
Support arrays for mountPath just like express does
Current Behavior
It's not supported
Steps to Reproduce the Issue
- add middleware with array definition for mountPath
- name: ui5-middleware-simpleproxy
afterMiddleware: ui5-middleware-stringreplacer
mountPath:
- '/ci/'
- '/v2/'
- '/sf/'
Context
- UI5 Module Version (output of
ui5 --versionwhen using the CLI): 2.13 - Node.js Version:
14 - npm Version:
8.1
Log Output / Stack Trace
Configuration server/customMiddleware/1/mountPath must be of type 'string'
/home/pieter/projects/xxx/app/ui5.yaml:17
15: - name: ui5-middleware-simpleproxy
16: afterMiddleware: compression
17: mountPath:
- Dominant language
- JavaScript
- Stars
- 511
- Forks
- 83
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 55
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UI5/cli
-
module/ui5-builder
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changes Openmodule/ui5-builder module/ui5-fs module/ui5-project
Difficulty 3/5 1-2 days Newbie friendliness 76/100
-
module/ui5-project
Difficulty 4/5 3-5 days Newbie friendliness 64/100
-
roadmap
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
babalae/bettergi-scripts-list#3674 ·
-
ecosystem wording
Difficulty 1/5 Under an hour Newbie friendliness 90/100
matrix-org/matrix.org#3649 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vadimdemedes/ink#1029 ·
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·