Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

BReg: name `relationship` in the Action input refusal message

Abierto Apto para principiantes
#2,150 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
92/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust
Área
backend

Línea de trabajo

Comienza en crates/registry-breg/src/contract.rs en impl Deserialize for ActionInputSource, donde se definen la condición de rechazo y el mensaje Invalid::expected. Actualiza las dos cadenas de member esperado y examina la aserción de crates/registry-breg/tests/field_encryption_contract.rs; añade o ajusta si es necesario un test hermano que cubra un member relationship. Terminado significa que el texto del diagnóstico y del quick fix nombra relationship, que la validación lo sigue rechazando y que los tests relevantes pasan.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:breg bug criticality:p3

A relationship member on an Action input is refused, which is correct: inputs are ephemeral and
cannot declare an inverse relationship. But the diagnostic and its fix-it list only
validTimeRole, pattern, encrypted and lookup. An author who copied a reference field into
inputs is told to remove four members, none of which is present, and the one that caused the
refusal is never named.

Minimal repro, in a project whose registry.yaml has an Action with a reference input:

actions:
  - id: register-facility
    # ...
    inputs:
      - id: operator
        type: reference
        target: operator
        relationship: {inverseName: registeredFacilities}
        required: true
        classification: internal

bregctl check <project> reports:

error[config.invalid-value] registry.yaml:<line>:<col> /actions/0/inputs/<n>
  expected an action input without validTimeRole, pattern, encrypted, or lookup
  next: Remove validTimeRole, pattern, encrypted, and lookup from the action input.

Expected:

  expected an action input without validTimeRole, pattern, encrypted, lookup, or relationship
  next: Remove validTimeRole, pattern, encrypted, lookup, and relationship from the action input.

Likely fix: crates/registry-breg/src/contract.rs, impl Deserialize for ActionInputSource. The
condition already refuses raw.relationship; only the two strings passed to Invalid::expected
need the fifth member. The assertion in crates/registry-breg/tests/field_encryption_contract.rs
(native_proposal_inputs_do_not_accept_persisted_record_encryption_members) matches the current
wording with .contains(...) and needs the same update. A sibling test that sets relationship
on an input would cover the case. Naming only the member actually present would be a better
message still.

The generated authoring schema already refuses relationship on inputs, so this is a
message-only fix.

Seen on main at 2fe7e90b2: the condition and both strings are unchanged.

Lenguaje dominante
Rust
Estrellas
2
Forks
0
Merge medio
10 h 32 min
PR fusionados (30 d)
256

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de registrystack/registry-stack

Todos los issues de registrystack/registry-stack

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.