Commit 24adcbc
committed
[docs] Fix incorrect input/output model examples.
This example has 2 main issues:
1. The model assigned to the fields variable shadows the flask_restx.fields
module, causing an AttributeError
2. The @api.model usage is simply incorrect, it is not intended to be
used as a class decorator on custom field implementations.
The corrections made here show what I *assume* the original author
intended to show.
#117 (comment)
Signed-off-by: Ben Steadman <steadmanben1@gmail.com>1 parent 50c54f0 commit 24adcbc
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
547 | 546 | | |
548 | 547 | | |
549 | 548 | | |
| |||
552 | 551 | | |
553 | 552 | | |
554 | 553 | | |
555 | | - | |
| 554 | + | |
556 | 555 | | |
557 | 556 | | |
558 | 557 | | |
559 | | - | |
| 558 | + | |
560 | 559 | | |
561 | 560 | | |
562 | 561 | | |
| |||
0 commit comments