Ejemplo
Show that path placeholders in Req require an explicit style and are not normalized across syntaxes.
sha256:8d74bb316cf0eb5ddaf0f5e7352fd2d7c0b907fed64b069760446631634aae5b
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- elixir
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- elixir
- Lenguaje
- elixir
- Gestor de paquetes
- mix
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- elixir 1
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- elixir 1
- Lenguaje
- elixir
- Gestor de paquetes
- mix
- Ejecución
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
Caso
- Objetivo
- Show that path placeholders in Req require an explicit style and are not normalized across syntaxes. HOW
- Paquetes
-
req 0.7.2
- Entorno
- elixir
- Creado
- 2026-08-17T04:45:26Z
Lo que suele suponerse
Providing `path_params` should replace a URL placeholder like `{id}` even when `path_params_style` is not set.
El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.
Contrato
- Curly placeholders in the URL are not interpolated by default, so `{id}` stays unreplaced when `path_params_style` is omitted.
- Using `path_params_style: :curly` with the same `path_params` expands `{id}` into `/items/1` in the request URL.
Archivos
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract.exs
- test/test_helper.exs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9