We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f77c144 commit 80e6179Copy full SHA for 80e6179
extractor-api-lib/src/extractor_api_lib/models/confluence_parameters.py
@@ -30,7 +30,7 @@
30
31
class ConfluenceParameters(BaseModel):
32
"""
33
-
+
34
""" # noqa: E501
35
url: StrictStr = Field(description="url of the confluence space.")
36
token: StrictStr = Field(description="api key to access confluence.")
@@ -56,7 +56,7 @@ def to_str(self) -> str:
56
def to_json(self) -> str:
57
"""Returns the JSON representation of the model using alias"""
58
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
59
- return json.dumps(self.to_dict())
+ return self.model_dump_json(by_alias=True, exclude_unset=True)
60
61
@classmethod
62
def from_json(cls, json_str: str) -> Self:
0 commit comments