diff --git a/src/types/basic.ts b/src/types/basic.ts index cc63fe4f..fe5d4a6b 100644 --- a/src/types/basic.ts +++ b/src/types/basic.ts @@ -96,7 +96,11 @@ export const VariableName = new t.Type( chain((s) => VAR_NAME_REGEX.test(s) ? t.success(s) - : t.failure(s, c, "may only contain alphanumeric chars plus '_'"), + : t.failure( + s, + c, + "needs to start with a letter and may only contain alphanumeric characters plus '_'", + ), ), ), t.identity, @@ -121,7 +125,7 @@ export const LabelName = new t.Type( : t.failure( s, c, - "may only contain alphanumeric chars plus '-' and '.'", + "needs to start with a letter and may only contain alphanumeric characters plus '-' and '.'", ), ), ),