Skip to content

feat: report invalid fields of registrations #317

Closed

Description

@uniqueg

Problem

When a registration or an update of a service is invalid (e.g. a URL scheme the deployment doesn't allow, a contact URL without mailto:, text that is too long), the registry answers 400 with a single free-text message. Clients such as the Cloud Registry UI can't show the error at the field it concerns, and users fix one field per submission.

Proposal

Adopt FOCA's field errors (elixir-cloud-aai/foca#586) for all write endpoints of the registry:

  • Report every invalid field of a request with its JSON Pointer, a stable code and a readable message, also for the registry's own checks (URL checks, schemes, reserved IDs, limits).
  • Document the codes in the API specification (additions.openapi.yaml) and in the docs, next to the existing conflict codes (ConflictError).
  • Tests for each code.

Blocked by elixir-cloud-aai/foca#586.

Activity

  1. added
    priority: medium
    status: blocked
    type: feature
    workload: days
    on Nov 1, 2026
  2. added
    status: triage
    status: in progress
    and removed
    status: blocked
    status: triage
    on Nov 9, 2026
  3. uniqueg commented on Nov 9, 2026

    @uniqueg
    MemberAuthor

    Scope note: #378 covers all of the registry's own write endpoints. The permission endpoints are served by FOCA's permissions API, so their field errors move to elixir-cloud-aai/foca#760; the registry gets them with the FOCA upgrade that follows.

  4. removed
    status: in progress
    on Nov 9, 2026
  5. added this to the v1.0.0-rc2 milestone on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: featureworkload: days

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions