From d03714aa20a80919170c1fcc57934122d78133bf Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 19 Apr 2022 17:04:36 -0700 Subject: [PATCH] docs: fix example for `nomad job validate` We haven't been able to validate inside driver config stanzas ever since the move to task driver plugins. :sob: --- website/content/docs/commands/job/validate.mdx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/website/content/docs/commands/job/validate.mdx b/website/content/docs/commands/job/validate.mdx index 83caa86f7022..057443990866 100644 --- a/website/content/docs/commands/job/validate.mdx +++ b/website/content/docs/commands/job/validate.mdx @@ -54,16 +54,13 @@ Defaults to true. ## Examples -Validate a job with invalid syntax: +Validate a JSON job with invalid syntax: ```shell-session -$ nomad job validate example.nomad +$ nomad job validate -json example.json Job validation errors: -1 error(s) occurred: - -* group "cache" -> task "redis" -> config: 1 error(s) occurred: - -* field "image" is required +1 error occurred: + * Missing job datacenters ``` Validate a job that has a configuration that causes warnings: