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
When creating a component, the name validation regex is not strict enough. It needs to validate that the component name is valid in regards to being a DNS and also the fact that it should have a /name and the name is mandatory. For this, regex needs to be adjusted to be more strict, but also keep in mind that trailing // should not be allowed.
ocm create componentarchive test 0.0.1 skarlso test-validation
Error: invalid component info: component.name: Does not match pattern '^[a-z0-9.\-]+[.][a-z]{2,4}/[-a-z0-9/_.]*$'
^[a-z0-9.\-]+[.][a-z]{2,4}/[-a-z0-9/_.]*$
a.c/name - name is required a.c/ - invalid a.c/// - also invalid a.c.c/adf/asdf - valid a.c/asdf/<non-alphanumeric> - invalid a.c/asdf/ - invalid ( trailing / )
The text was updated successfully, but these errors were encountered:
When creating a component, the name validation regex is not strict enough. It needs to validate that the component name is valid in regards to being a DNS and also the fact that it should have a
/name
and the name is mandatory. For this, regex needs to be adjusted to be more strict, but also keep in mind that trailing//
should not be allowed.^[a-z0-9.\-]+[.][a-z]{2,4}/[-a-z0-9/_.]*$
a.c/name
- name is requireda.c/
- invalida.c///
- also invalida.c.c/adf/asdf
- valida.c/asdf/<non-alphanumeric>
- invalida.c/asdf/
- invalid ( trailing/
)The text was updated successfully, but these errors were encountered: