Skip to content

Commit

Permalink
Updated example for queryStringJsonSchema (fastify#2595)
Browse files Browse the repository at this point in the history
* Updated example for queryStringJsonSchema

* Replaced double quotes with single quotes

* Updated example for paramsJsonSchema
  • Loading branch information
danechitoaie authored Oct 2, 2020
1 parent 8f1d30b commit 024ed06
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/Validation-and-Serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 024ed06

Please sign in to comment.