You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(cloud-registry): validate the create form like the API #453
http:// service URLs where the deployment allows only https;
malformed URLs;
text longer than the maximum lengths;
free-text createdAt/updatedAt that isn't RFC 3339.
Apps can't add checks from outside the component. The Cloud Registry UI checks these in its own edit form (elixir-cloud-aai/cloud-registry-ui#13), but for the create form it can only show the backend's message.
What?
URLs (url, organization.url, contactUrl, documentationUrl): HTTP(S) with a host, and no user info, whitespace, control characters or malformed percent-encodings. contactUrl may also be a mailto: URL.
A property for the allowed service URL schemes, e.g., url-schemes (default https), matching the registry's custom.endpoints.services.url_schemes.
Max lengths: 1024 for name and organization.name; 4096 for description; 256 for version, environment and type.*; 2048 for URLs.
createdAt/updatedAt: RFC 3339 date-times.
Show errors at the field, and fire ecc-service-create-validation-failed instead of sending the request.
Acceptance criteria
Inputs that the API rejects with 400 are flagged in the form, naming the field.
Once elixir-cloud-aai/cloud-registry#256 is done, the registry publishes its registration rules (allowed environments, URL schemes, service type mode and limit). The create form can then read them from the API instead of taking them as properties, with the properties as fallbacks for older registries.
Activity
uniqueg commentedon Oct 26, 2026
Once elixir-cloud-aai/cloud-registry#256 is done, the registry publishes its registration rules (allowed environments, URL schemes, service type mode and limit). The create form can then read them from the API instead of taking them as properties, with the properties as fallbacks for older registries.
uniqueg commentedon Nov 1, 2026
Superseded by #536 (and its blockers #535 and elixir-cloud-aai/cloud-registry#317, which builds on elixir-cloud-aai/foca#586): instead of copying the registry's rules into the component, the registry reports invalid fields and the component shows them (see the discussion in #510).