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
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
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
def preprocess_body(self, body: EntityDefinition) -> EntityDefinition: body = super().preprocess_body(body) if body.get("description") == "": body["description"] = None return body
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