We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d499def commit 12f7c8aCopy full SHA for 12f7c8a
src/Shared/validations.tsx
@@ -474,8 +474,11 @@ export const validateCMVolumeMountPath = (value: string): { isValid: boolean; me
474
475
export const validateYAML = (yamlString: string, isRequired?: boolean): ValidationResponseType => {
476
try {
477
- if (isRequired) {
478
- requiredField(yamlString)
+ if (!yamlString && isRequired) {
+ return {
479
+ isValid: false,
480
+ message: 'This field is required',
481
+ }
482
}
483
parse(yamlString)
484
return {
0 commit comments