schemas create --dry-run doesn't validate anything, just echoes input back
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
Línea de trabajo
Look at the schemas create command implementation, likely in a commands/ or schemas/ directory. Compare it with schemas update --dry-run to see how the API validation is called. The fix involves ensuring the dry-run path performs the same validation as the real execution. Run the failing test cases from the issue description to verify the fix.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version: hubspot 0.14.0 (build 1162, commit unknown)
Command run:
$ echo '{}' | hubspot schemas create --dry-run
$ echo '{"name":"test_object_xyz"}' | hubspot schemas create --dry-run
Expected result: given schemas create (without --dry-run) rejects both of these bodies with a 400 validation error (Some required fields were not set: [name, labels], then [labels]), the --dry-run equivalent should surface the same validation problem rather than reporting success.
Actual result: --dry-run reports ok: true for both, regardless of body content, simply echoing back whatever was piped in:
$ echo '{}' | hubspot schemas create --dry-run
{"ok":true,"executed":false,"dry_run":true,"data":{}}
$ echo '{"name":"test_object_xyz"}' | hubspot schemas create --dry-run
{"ok":true,"executed":false,"dry_run":true,"data":{"name":"test_object_xyz"}}
$ echo '{}' | hubspot schemas create
{"ok":false,"error":{"status":400,"message":"Invalid input JSON on line 1, column 2. Some required fields were not set: [name, labels]"}}
For comparison, schemas update --dry-run genuinely calls the API - it returns portal-specific data (state_snapshot, digest, the actual portal ID), so this isn't true of every --dry-run in the CLI, just schemas create (and possibly other create commands - not exhaustively tested).
Why this matters: the README's own beta warning recommends using --dry-run before mutations as the safety practice for a tool that can modify live CRM data. For schemas create, a passing dry-run gives no assurance the real call will succeed.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 7
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de HubSpot/agent-cli
-
properties get/list/batch-read appear unable to retrieve sensitive or highly-sensitive propertiesAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
-
schemas update: confirm step (--digest/--confirm) returns ok:true but never persists the changeAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Todos los issues de HubSpot/agent-cli
Issues similares
-
area: server enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
scs0209/laya-guard#52 ·
Los mantenedores suelen responder en 1 día
-
Galaxy tray reset uses op_mode 0x0, which hotplugs unrelated PCIe devices (tt-smi ≥6.4.1 uses 0x3)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
tenstorrent/tt-flash#120 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[Bug]: armbian-firstlogin: preset Wi-Fi key with " or \ breaks netplan configPosiblemente ocupada @jfcabral la tomó hoy. AbiertoBug Good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
armbian/build#10995 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
jbacalso24/mimry#185 ·
Los mantenedores suelen responder en 1 día