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
Commit 860f9e2
Browse filesBrowse the repository at this point in the historyBrowse files
fix(skilldoc): don't misparse a description's bracketed prose as an enum
The Request-fields enum extractor matched the FIRST "[...]" bracket
anywhere in a flag's tail text and treated its contents as an enum
declaration. cligen's own trailing enum bracket is always the last
thing on the line (before an optional constraint suffix), but a
description can legitimately quote an unrelated bracket earlier in its
own prose -- e.g. a regex character class ("1-40 chars of
'[a-zA-Z0-9_]'"). The old code fabricated a one-value enum from that
character class AND deleted it from the sentence, leaving an empty
quoted pair where the class used to be.
Only recognize a bracket anchored to the end of the tail (once an
optional trailing "(constraint)" is set aside) as a genuine enum --
exactly where cligen's generator appends one. Anything earlier in the
text is left untouched, description and constraint both.
Regenerating all cards with this fix touches only field.md (the sole
card affected): the fabricated enum tag is gone and the character
class renders intact in the description.
--field-name string (required) — Machine name. Must start with a letter or underscore; 1–40 chars of '[a-zA-Z0-9_]'. Immutable after creation. (≤39 chars)
238
+
--field-type string (required) — Field input type. [checkbox, text]
-`--display-name` string (required) — Human-readable name. Must be unique within the account. (≤39 chars)
48
-
-`--field-name` string (required) — Machine name. Must start with a letter or underscore; 1–40 chars of ''. Immutable after creation. (≤39 chars) · enum: a-zA-Z0-9_
48
+
-`--field-name` string (required) — Machine name. Must start with a letter or underscore; 1–40 chars of '[a-zA-Z0-9_]'. Immutable after creation. (≤39 chars)
49
49
-`--field-type` string (required) — Field input type. Immutable after creation. · enum: checkbox | multi_select | single_select | text
50
50
-`--options` stringSlice — Required and non-empty for 'single_select'/'multi_select' (unique strings, each 1–200 chars). Must be omitted or empty for 'checkbox'/'text'.
0 commit comments