Skip to content

Commit 7642144

Browse files
committed
docs: add isCurrentAccountAnswer property to documentation
1 parent 05adb00 commit 7642144

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ O objetivo do treinamento é mostrar como criar uma API com uma arquitetura bem
136136
- ✅ Refactor
137137
- ✅ Swagger
138138
- ✅ LoadSurveyResult API
139-
- ⛔️ Refactor
139+
- Refactor
140140
- ⛔️ Melhorando a Arquitetura
141141
- ⛔️ GraphQL
142142
- ⛔️ Atualizando Libs

src/main/docs/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
title: 'Clean Node API',
99
description:
1010
'API of surveys in NodeJs using Typescript, TDD, Clean Architecture, Design Patterns and SOLID principles.',
11-
version: '1.2.0',
11+
version: '1.2.1',
1212
},
1313
contact: {
1414
name: 'Daniel Sansão Araldi',
@@ -18,8 +18,8 @@ export default {
1818
name: 'MIT',
1919
url: 'https://github.com/DanielAraldi/clean-node-api/blob/main/LICENSE',
2020
},
21-
servers: [{ url: '/api' }], // Paths URL
22-
tags: [{ name: 'Login' }, { name: 'Survey' }], // Query titles
21+
servers: [{ url: '/api' }],
22+
tags: [{ name: 'Login' }, { name: 'Survey' }],
2323
paths,
2424
schemas,
2525
components,

src/main/docs/schemas/survey-result-answer-schema.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ export const surveyResultAnswerSchema = {
66
count: { type: 'integer' },
77
percent: { type: 'number' },
88
image: { type: 'string' },
9+
isCurrentAccountAnswer: { type: 'boolean' },
910
},
10-
required: ['answerId', 'answer', 'count', 'percent'],
11+
required: [
12+
'answerId',
13+
'answer',
14+
'count',
15+
'percent',
16+
'isCurrentAccountAnswer',
17+
],
1118
};

0 commit comments

Comments
 (0)