To fork or not to fork
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 src/Lexer.php 第 432 行附近开始,并将 [ ?abc == def ] 的处理方式与 jmespath-community/jmespath.spec 进行比较,尤其是 JEP-012a。该 issue 首先需要 maintainer 决定是采用较新的社区规范,还是保持与其他实现的一致性;只有在此之后才能定义完成标准。
由索引模型根据 Issue 内容生成。
描述
Hey @GrahamCampbell I'm rudely pinging you, I hope you will forgive me.
We've recently switched to the clientside community implementation since the one here is no longer supported.
However we also use this implementation in our backend.
We've found some inconsistencies between the community implementation and the PHP and JS implementations here. In this case the community implementation is correct according to the spec.
My question to you is this: Would you accept PRs that fix spec compliance while breaking consistency with other libraries in this org?
I'd prefer not to fork this to the community org if we can instead maintain it here; on the other hand while you're keeping this alive, it's not being actively developed (no blame, just observation).
What would your preference be? Since we use JMESPath I'm happy to contribute in the form of a fork with the community or by making PRs here; but I'd love your opinion before I make a choice.
The specific issue we're running into is the case of an unquoted string inside a JSON literal:
[?abc == `def`]
Which is supported in this library: https://github.com/jmespath/jmespath.php/blob/master/src/Lexer.php#L432
The fix is easy of course, but we'd break consistency with the JS implementation.
The specification where this is defined lives here: https://github.com/jmespath-community/jmespath.spec/blob/main/jep-012-raw-string-literals.md
Which is obsoleted by 12a: https://github.com/jmespath-community/jmespath.spec/blob/main/jep-012a-raw-string-literals.md
TLDR; would you accept PRs that update this library to newer community specs or do you prefer to keep this implementation consistent with other implementations in this ORG?
- 主要语言
- PHP
- 星标
- 2k
- 派生
- 57
- 平均合并
- 2 小时 22 分钟
- 30 天内合并 PR
- 12
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
tomjn/coilbox-hub#768 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
ExpressionEngine/ExpressionEngine#5493 ·
维护者通常 5 天内回复
-
"Attempt to read property 'username' on null" error after a user is deleted可能已有人在做 @dicksonlaw583 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
omeka/plugin-SimplePages#49 ·
-
not confirmed
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复