alufers
7f14109658
Update deps, pre-commit checkers
1 year ago
pre-commit-ci[bot]
9c29226973
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2 years ago
puc9
c70e8e27fc
Fix number/boolean and nullable object generation
2 years ago
Tim Vahlbrock
57256b794e
fix typo in tests
2 years ago
Tim Vahlbrock
c57a8646bc
test compliance with openapi specs
2 years ago
Tim Vahlbrock
b1ce4cf5a5
reduce duplication in testclient implementations
2 years ago
Tim Vahlbrock
e2537a738d
add support for uuids
2 years ago
Tim Vahlbrock
7dcc8f7881
fix tests
2 years ago
Tim Vahlbrock
337a3de33d
add support for numeric generic keys
2 years ago
Tim Vahlbrock
f4c5404b7f
add test for generic keys
2 years ago
alufers
8400b64db7
Add tests for msgpack parsing
...
Also checked in scripts used to generate test data
2 years ago
alufers
b4f301f44c
Only parse requests and responses as msgpack if they were not JSON
2 years ago
pre-commit-ci[bot]
dcf1bd7694
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2 years ago
scw007
a5d6fae25d
add support for msgpack
2 years ago
alufers
d30b6ea2d2
refactor: Use isinstance instead of type comparison for value check
...
Use isinstance function instead of type comparison for checking the type of the value in the utility functions `value_to_schema` and `limit_example_size`. As suggested by flake8.
2 years ago
Albert Koczy
bd836a720f
Merge pull request #71 from gadcam/patch-2
3 years ago
pre-commit-ci[bot]
93a7356fc8
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
3 years ago
Camille Barneaud
099ddb9d7d
[Capture] Heuristic - Fix detection
...
- Remove false positives because of EOL characters
- First character would always be a digit before as we were handling the int representation of the character
3 years ago
pre-commit-ci[bot]
3249738620
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
3 years ago
Camille Barneaud
8ec7fea0a4
[HAR] Heuristic - Fix and improve support for Firefox
...
- Add a bigger weight to the HAR extension
- Fix the ASCII detection by removing EOL characters
- Fix the first character detection that was not working because would compare with an int
- Add a pattern to detect Firefox export
3 years ago
alufers
46be163582
Fix indentation again
3 years ago
alufers
78112c5e91
Fix indentation
3 years ago
alufers
0625d44efc
refactor: Improve consistency of indentations, reformat comments, and use active voice in mitmproxy2swagger
...
Improves the consistency of indentations, reformat comments, and updates the passive voice used in function requests_to_headers and mitmproxy2swagger_e2e_test to active voice.
3 years ago
pre-commit-ci[bot]
fe6f5fc01c
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
3 years ago
Albert Koczy
d055a2a700
Merge pull request #49 from Sh4rK/fix/pattern
3 years ago
pre-commit-ci[bot]
6c1a99a18f
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
3 years ago
Antal Szabó
ac70c5aab9
feat: add customizable param regex and suppression
...
This adds 2 new command line flags:
- `-r`, `--param-regex`: Allows the user to customize what path segment
value will be considered as a parameter.
- `s`, `--suppress-params`: Only outputs the "templated" path with the
parameter variables, but not the originals with the actual parameters.
3 years ago
Antal Szabó
f85071e4b9
fix: correctly escape path templates
...
Previously, the resulting regex was incorrect, as the
newly introduced control characters (when handling
path parameters) were also escaped. This caused
paths with parameters to not be generated.
Also removes an effect-less `for` loop.
3 years ago
Kevin Nobel
bdb62795b7
Fix type hinting for Python3.9
3 years ago
alufers
f22a138e45
fix: openapi compliance
3 years ago
edpryk
74f5c8265b
replaced str to tuple
3 years ago
edpryk
5307c41bba
fixed issue with unstable type list
3 years ago
alufers
7be42375a8
Fixup imports
3 years ago
alufers
5e4a851d7c
Add compliance tests for the OpenAPI spec
3 years ago
alufers
fa71db2fb5
Cleanup tests
3 years ago
alufers
d5975fafe0
Move common test functions to test_util
3 years ago
alufers
3ce956a965
Add more advanced tests
3 years ago
alufers
3c5ef6fe61
tests: Add basic e2e tests for mitmproxy2swagger
3 years ago
alufers
9c774be83e
Add pre-commit and a myriad of other tools
...
Run them on all of the source
3 years ago
alufers
cac017ff9b
fix: Not matching urls due to a weird flow file
...
This fixes a weir edge case where the mitmproxy library reports the URL to have an IP instead of the hostname
3 years ago
Deovan Zanol
090d70ee2e
Fix options
3 years ago
Deovan Zanol
c4eefda33b
Add headers option
3 years ago
alufers
4355301417
delete print statements in mitmproxy2swagger.py
3 years ago
alufers
396bfd67e1
Black everything
3 years ago
alufers
e98bf130b2
fix: path to regex conversion failing when URL contains parenthesis
3 years ago
alufers
d04b127870
feat: add basic parsing of x-www-form-urlencoded requests
3 years ago
CorruptedBios
ed64ac6a30
fixed typo
3 years ago
Kuba Szczodrzyński
14bb954ddf
fix: detect base64-encoded responses
3 years ago
alufers
cb9d2ee1d2
add error message to mitmproxy
3 years ago
alufers
065865ef36
fix: add error message and tune the mitmproxy/har detection logic
3 years ago