Should PyWPS automatically set minOccurs=0 when literal data default is provided?
还没有人认领这个 Issue。
评估
调研方向
未识别出文件或测试。首先跟踪 PyWPS 对同时指定 default 和 min_occurs 的字面量输入进行输入验证以及生成过程描述的流程,然后查看报告中列出的相关 issue 和 pull request。完成的标准是,已就 default 和 min_occurs 的预期行为达成一致,并且该行为在执行期间和过程描述中都得到一致体现。
由索引模型根据 Issue 内容生成。
描述
Description
Field min_occurs=1 is the default of inputs. When default parameter is provided to define a default literal value, that default 1 occurrence loses its meaning. I would imagine most people expect that adding this default parameter will make their process pick that value if it was omitted, but this will never happen due to min_occurs=1 check at execution time. The process description also displays ``minOccurs=1anddefaultValue` simultaneously, which makes the default behaviour hard to understand.
I am questioning whether PyWPS should be smart about it and automatically adjust the value to 0 when default is provided, since it doesn't make sense to have that default if it cannot be resolved by default when omitting the input value.
Although the fix is relatively simple to manually adjust any process I/O incorrectly defined, I find this is a quite common and recurring issue. See for example additional information which is just a list of cases I found within a week, over many WPS process implementations.
Environment
- operating system: ubuntu 20.04
- Python version: 3.8
- PyWPS version: latest
- source/distribution
- git clone
- Debian
- PyPI
- zip/tar.gz
- other (please specify):
- web server
- Apache/mod_wsgi
- CGI
- other (please specify):
Additional Information
Following related issues/PR where similar problem was noticed:
- 主要语言
- Python
- 星标
- 186
- 派生
- 117
- 平均合并
- 16 天 16 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
geopython/pywps 的其他 Issue
-
ReadTheDocs OAuth App Installation可能重新可做 @tomkralidis 于 101 天前认领,目前没有进行中的 PR。 未关闭documentation
-
Modernizing the packaging of the library可能重新可做 @Zeitsperre 于 314 天前认领,目前没有进行中的 PR。 未关闭documentation enhancement packaging
-
DBLog test are bound to other test可能已有人在做 @C1-BA-B1-F3 于 27 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
ComplexOutput data as reference always generates a file named "input.csv", should be "output".可能已有人在做 @C1-BA-B1-F3 于 27 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
-
Validate finite output clamping limits in StepPredictor.prepare_clamping_params to prevent silent NaN/Inf propagation可能已有人在做 @muskan-creates352 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
mllam/neural-lam#848 ·
维护者通常 2 天内回复
-
infra
难度 1/5 1 小时以内 新手友好度 88/100
fab-geocommuns/RNB-coeur#1166 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
deepspeedai/DeepSpeed#8951 ·
维护者通常 2 天内回复