Beispiel
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
Fall
- Ziel
- Prove that sorbet-runtime v0.6.13427 rejects the legacy `pii:` prop option in favor of `sensitivity:`. HOW
- Pakete
- sorbet-runtime 0.6.13427
- Umgebung
- ruby
- Erstellt
- 2026-08-17T02:49:16Z
Häufige Annahme
The legacy `pii:` property option is still accepted as a backward-compatible alias for `sensitivity:` in sorbet-runtime v0.x.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- 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
Dateien
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9