Skip to content

Commit

Permalink
chore(routes): update schema inline comment re injection attacks (#1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Mar 21, 2023
1 parent f985e6c commit a1f99d0
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/routes/admin/healthcheck/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const tags = ["System administration"];
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks
*/
const healthcheckGetSchema = {
tags,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/docs/openapi/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const S = require("fluent-json-schema");
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks
*/
const docsOpenapiGetSchema = {
hide: true,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/docs/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const S = require("fluent-json-schema");
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks
*/
const docsGetSchema = {
hide: true,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/docx/html/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const tags = ["DOCX"];
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks
*/
const docxToHtmlPostSchema = {
tags,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/docx/txt/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const tags = ["DOCX"];
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks.
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks.
*/
const docxToTxtPostSchema = {
tags,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/pdf/html/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const tags = ["PDF"];
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks
*/
const pdfToHtmlPostSchema = {
tags,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/pdf/txt/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const tags = ["PDF"];
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks
*/
const pdfToTxtPostSchema = {
tags,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/rtf/html/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const tags = ["RTF"];
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks
*/
const rtfToHtmlPostSchema = {
tags,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/rtf/txt/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const tags = ["RTF"];
* Fastify uses AJV for JSON Schema Validation,
* see https://fastify.io/docs/latest/Reference/Validation-and-Serialization/
*
* Input validation protects against XSS, HPP, and most injection attacks
* Input validation protects against XSS, HPP, prototype pollution,
* and most other injection attacks
*/
const rtfToTxtPostSchema = {
tags,
Expand Down

0 comments on commit a1f99d0

Please sign in to comment.