-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove some unneeded stuff
- Loading branch information
Showing
6 changed files
with
61 additions
and
22 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 @@ | ||
""" | ||
Basic detector class | ||
""" | ||
|
||
from abc import ABC, abstractmethod | ||
|
||
|
||
class BaseDetector(ABC): | ||
@abstractmethod | ||
def detect_pagination(self) -> None: | ||
... | ||
|
||
@abstractmethod | ||
def detect_payload_path(self) -> None: | ||
... | ||
|
||
@abstractmethod | ||
def detect_authentication(self) -> None: | ||
... | ||
|
||
@abstractmethod | ||
def detect_primary_key(self) -> None: | ||
... | ||
|
||
@abstractmethod | ||
def detect_parent_endpoint(self) -> None: | ||
... |
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,22 @@ | ||
""" | ||
Default open source detector | ||
""" | ||
|
||
from openapi_python_client.detectors.base_detector import BaseDetector | ||
|
||
|
||
class DefaultDetector(BaseDetector): | ||
def detect_pagination(self) -> None: | ||
... | ||
|
||
def detect_payload_path(self) -> None: | ||
... | ||
|
||
def detect_authentication(self) -> None: | ||
... | ||
|
||
def detect_primary_key(self) -> None: | ||
... | ||
|
||
def detect_parent_endpoint(self) -> None: | ||
... |
File renamed without changes.
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
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