From 024ed06566f36f4a81fe8c4018d230114f9ff6bd Mon Sep 17 00:00:00 2001 From: Daniel Anechitoaie <10779010+danechitoaie@users.noreply.github.com> Date: Fri, 2 Oct 2020 16:35:18 +0300 Subject: [PATCH] Updated example for queryStringJsonSchema (#2595) * Updated example for queryStringJsonSchema * Replaced double quotes with single quotes * Updated example for paramsJsonSchema --- docs/Validation-and-Serialization.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/Validation-and-Serialization.md b/docs/Validation-and-Serialization.md index c50fc3c023..a1fff815b0 100644 --- a/docs/Validation-and-Serialization.md +++ b/docs/Validation-and-Serialization.md @@ -163,13 +163,19 @@ const bodyJsonSchema = { } const queryStringJsonSchema = { - name: { type: 'string' }, - excitement: { type: 'integer' } + type: 'object', + properties: { + name: { type: 'string' }, + excitement: { type: 'integer' } + } } const paramsJsonSchema = { - par1: { type: 'string' }, - par2: { type: 'number' } + type: 'object', + properties: { + par1: { type: 'string' }, + par2: { type: 'number' } + } } const headersJsonSchema = {