示例
Prove that sorbet-runtime v0.6.13427 rejects the legacy `pii:` prop option in favor of `sensitivity:`.
sha256:0e5794a4e6fa20137ce241f5001b7bd1c1c739859678f49269de5809139a86a1
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Prove that sorbet-runtime v0.6.13427 rejects the legacy `pii:` prop option in favor of `sensitivity:`. HOW
- 包
- sorbet-runtime 0.6.13427
- 环境
- ruby
- 创建时间
- 2026-08-17T02:49:16Z
常见的想当然
The legacy `pii:` property option is still accepted as a backward-compatible alias for `sensitivity:` in sorbet-runtime v0.x.
这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。
契约
- defining a `T::Struct` prop with `pii:` raises ArgumentError and the message says `pii:` was renamed to `sensitivity:`
- defining the same prop shape with `sensitivity:` succeeds and creates a usable property
文件
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9