-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge master into dev/smt5541/openapi
- Loading branch information
Showing
19 changed files
with
1,647 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
### 🛠 Changes being made | ||
|
||
#### Give examples of the changes you've made in this pull request. Include an itemized list if you can. | ||
|
||
### 🧠 Rationale behind the change | ||
|
||
#### Why did you choose to make these changes? | ||
|
||
#### Does this pull request resolve any open issues? | ||
|
||
#### Were there any trade-offs you had to consider? | ||
|
||
### 🧪 Testing | ||
|
||
- [ ] Have tests been added or updated for the changes introduced in this pull request? | ||
|
||
- [ ] Are the changes backwards compatible? | ||
|
||
#### If the changes aren't backwards compatible, what other options were explored? | ||
|
||
### ✨ Quality check | ||
|
||
- [ ] Are your changes free of any erroneous print statements, debuggers or other leftover code? | ||
|
||
- [ ] Has the README been updated to reflect the changes introduced (if applicable)? | ||
|
||
### 💬 Additional comments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
flask_parameter_validation/parameter_types/multi_source.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from typing import Type | ||
|
||
from flask_parameter_validation.parameter_types.parameter import Parameter | ||
|
||
|
||
class MultiSource(Parameter): | ||
name = "multi_source" | ||
|
||
def __init__(self, *sources: list[Type[Parameter]], **kwargs): | ||
self.sources = [Source(**kwargs) for Source in sources] | ||
super().__init__(**kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.