コード例 #1
0
 def preprocess_body(self, body: EntityDefinition) -> EntityDefinition:
     body = super().preprocess_body(body)
     if "requirements" in body.keys():
         body["requirements_file"] = body.pop("requirements")
     for nullable in remote_nullables + self.collection_nullable:
         if body.get(nullable) == "":
             body[nullable] = None
     return body
コード例 #2
0
 def preprocess_body(self, body: EntityDefinition) -> EntityDefinition:
     body = super().preprocess_body(body)
     for nullable in [
             "publication",
     ]:
         if body.get(nullable) == "":
             body[nullable] = None
     return body
コード例 #3
0
 def preprocess_body(self, body: EntityDefinition) -> EntityDefinition:
     body = super().preprocess_body(body)
     for nullable in [
             "ca_cert",
             "client_cert",
             "client_key",
             "password",
             "proxy_url",
             "username",
     ]:
         if body.get(nullable) == "":
             body[nullable] = None
     return body
コード例 #4
0
 def preprocess_body(self, body: EntityDefinition) -> EntityDefinition:
     body = super().preprocess_body(body)
     if body.get("description") == "":
         body["description"] = None
     return body
コード例 #5
0
 def preprocess_body(self, body: EntityDefinition) -> EntityDefinition:
     body = super().preprocess_body(body)
     for nullable in remote_nullables:
         if body.get(nullable) == "":
             body[nullable] = None
     return body