Python: Add Flask response model

This commit is contained in:
Taus
2023-09-25 13:24:07 +00:00
committed by Rasmus Wriedt Larsen
parent 7b1c6b0dd6
commit cb1efa915e
2 changed files with 8 additions and 0 deletions

View File

@@ -208,6 +208,12 @@ class DjangoHttpResponseFileResponse extends FindSubclassesSpec {
}
}
class FlaskResponse extends FindSubclassesSpec {
FlaskResponse() { this = "flask.Response~Subclass" }
override API::Node getAlreadyModeledClass() { result = Flask::Response::classRef() }
}
bindingset[fullyQualified]
predicate fullyQualifiedToYamlFormat(string fullyQualified, string type2, string path) {
exists(int firstDot | firstDot = fullyQualified.indexOf(".", 0, 0) |