Skip to content

Commit 76fffb2

Browse files
committed
fix(python): fix absent model when only PUT endpoint is present
Correction for 6547d71 commit. Relate to #16
1 parent c3296ca commit 76fffb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/routes.py.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function dtoInCache(dto) {
167167
}
168168
169169
// Generate models
170-
const verbs_with_dto = [ 'post' ]
170+
const verbs_with_dto = [ 'post', 'put' ]
171171
endpoints.forEach(function(endpoint) {
172172
const dtos = endpoint.methods
173173
.filter(method => verbs_with_dto.includes(method.verb))

0 commit comments

Comments
 (0)