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
Support +required, +k8s:required, +optional and +k8s:optional markers (elastic#193)
This adds support for the +required, +k8s:required, +optional and +k8s:optional markers, aligning with upstream Kubernetes marker conventions.
Additionally, it improves the escaping of pipe character for validation value in Asciidoctor output to prevent formatting issues.
Based on the work from elastic#192, with additional changes.
Copy file name to clipboardExpand all lines: test/expected.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,11 +127,15 @@ _Appears in:_
127
127
128
128
| Field | Description | Default | Validation |
129
129
| --- | --- | --- | --- |
130
-
|`name`_string_| Name of the guest (pipe \| should be escaped) || MaxLength: 80 <br />Pattern: `0*[a-z0-9]*[a-z]*[0-9]` <br /> |
130
+
|`name`_string_| Name of the guest (pipe \| should be escaped) || MaxLength: 80 <br />Pattern: `0*[a-z0-9]*[a-z]*[0-9]` <br />Required: \{\} <br />|
131
131
|`tags`_string array_| Tags of the entry. || items:Pattern: `[a-z]*` <br /> |
132
132
|`time`_[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#time-v1-meta)_| Time of entry |||
133
133
|`comment`_string_| Comment by guest. This can be a multi-line comment.<br />Like this one.<br />Now let's test a list:<br />* a<br />* b<br />Another isolated comment.<br />Looks good? || Pattern: `0*[a-z0-9]*[a-z]*[0-9]*\|\s` <br /> |
134
134
|`rating`_[Rating](#rating)_| Rating provided by the guest || Maximum: 5 <br />Minimum: 1 <br /> |
135
+
|`email`_string_| Email is the email address of the guest (required field using +required marker) || Required: \{\} <br /> |
136
+
|`location`_string_| Location is the location of the guest (required field using +k8s:required marker) || Required: \{\} <br /> |
137
+
|`phone`_string_| Phone is the phone number of the guest (optional field using +optional marker) || Optional: \{\} <br /> |
138
+
|`company`_string_| Company is the company of the guest (optional field using +k8s:optional marker) || Optional: \{\} <br /> |
Copy file name to clipboardExpand all lines: test/hide.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,11 +128,15 @@ _Appears in:_
128
128
129
129
| Field | Description | Default | Validation |
130
130
| --- | --- | --- | --- |
131
-
|`name`_string_| Name of the guest (pipe \| should be escaped) || MaxLength: 80 <br />Pattern: `0*[a-z0-9]*[a-z]*[0-9]` <br /> |
131
+
|`name`_string_| Name of the guest (pipe \| should be escaped) || MaxLength: 80 <br />Pattern: `0*[a-z0-9]*[a-z]*[0-9]` <br />Required: \{\} <br />|
132
132
|`tags`_string array_| Tags of the entry. || items:Pattern: `[a-z]*` <br /> |
133
133
|`time`_[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#time-v1-meta)_| Time of entry |||
134
134
|`comment`_string_| Comment by guest. This can be a multi-line comment.<br />Like this one.<br />Now let's test a list:<br />* a<br />* b<br />Another isolated comment.<br />Looks good? || Pattern: `0*[a-z0-9]*[a-z]*[0-9]*\|\s` <br /> |
135
135
|`rating`_[Rating](#rating)_| Rating provided by the guest || Maximum: 5 <br />Minimum: 1 <br /> |
136
+
|`email`_string_| Email is the email address of the guest (required field using +required marker) || Required: \{\} <br /> |
137
+
|`location`_string_| Location is the location of the guest (required field using +k8s:required marker) || Required: \{\} <br /> |
138
+
|`phone`_string_| Phone is the phone number of the guest (optional field using +optional marker) || Optional: \{\} <br /> |
139
+
|`company`_string_| Company is the company of the guest (optional field using +k8s:optional marker) || Optional: \{\} <br /> |
0 commit comments