From b076d39a02e5015af0a2a96636e4cc479ecd9f45 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 26 Oct 2020 18:00:38 -0700 Subject: [PATCH] Fix syntax error in meta-schema validation example snippet The previous snippet resulted in the error: ``` invalid character '$' looking for beginning of object key string ``` Rather than the intended error: ``` multipleOf: Invalid type. Expected: number, given: boolean ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 758f26d..aa33383 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ The following example will produce an error as `multipleOf` must be a number. If sl := gojsonschema.NewSchemaLoader() sl.Validate = true err := sl.AddSchemas(gojsonschema.NewStringLoader(`{ - $id" : "http://some_host.com/invalid.json", + "$id" : "http://some_host.com/invalid.json", "$schema": "http://json-schema.org/draft-07/schema#", "multipleOf" : true }`))