Skip to content

Commit ab8fbc7

Browse files
authored
Made attributes values to be optional
* Made attributes values to be optional
1 parent db93fea commit ab8fbc7

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Parallel file download functionality with HTTP range requests
1212
- Group download capabilities with intelligent rate limiting
1313
- Comprehensive test suite with coverage reporting
14+
## [0.0.8] - 2025-10-21
15+
- Made label and expression parameters optional in attribute api response
16+

dataquery/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
For more information, visit: https://github.com/dataquery/dataquery-sdk
1515
"""
1616

17-
__version__ = "0.0.7"
17+
__version__ = "0.0.8"
1818
__author__ = "DATAQUERY SDK Team"
19-
__email__ = "support@dataquery.com"
19+
__email__ = "dataquery@jpmorgan.com"
2020
__license__ = "MIT"
21-
__url__ = "https://github.com/dataquery/dataquery-sdk-python"
21+
__url__ = "https://github.com/jpmorganchase/dataquery-sdk"
2222

2323
# Authentication imports
2424
from .auth import (

dataquery/models.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -954,16 +954,16 @@ class Instrument(BaseModel):
954954
class Attribute(BaseModel):
955955
"""Model representing an attribute measure for an instrument."""
956956

957-
attribute_id: str = Field(
958-
..., alias="attribute-id", description="Unique attribute measure identifier"
957+
attribute_id: Optional[str] = Field(
958+
None, alias="attribute-id", description="Unique attribute measure identifier"
959959
)
960-
attribute_name: str = Field(
961-
..., alias="attribute-name", description="Attribute short name"
960+
attribute_name: Optional[str] = Field(
961+
None, alias="attribute-name", description="Attribute short name"
962962
)
963-
expression: str = Field(
964-
..., description="Traditional DataQuery time-series identifier"
963+
expression: Optional[str] = Field(
964+
None, description="Traditional DataQuery time-series identifier"
965965
)
966-
label: str = Field(..., description="Name of a time-series data set")
966+
label: Optional[str] = Field(None, description="Name of a time-series data set")
967967
last_published: Optional[str] = Field(
968968
None, alias="last-published", description="Date/Time data was last published"
969969
)
@@ -1017,7 +1017,9 @@ class InstrumentWithAttributes(BaseModel):
10171017
None, alias="instrument-isin", description="Instrument ISIN"
10181018
)
10191019
group: Optional[Dict[str, str]] = Field(None, description="Group information")
1020-
attributes: List[Attribute] = Field(..., description="List of attributes")
1020+
attributes: Optional[List[Attribute]] = Field(
1021+
None, description="List of attributes"
1022+
)
10211023

10221024
model_config = ConfigDict(extra="allow", populate_by_name=True)
10231025

0 commit comments

Comments
 (0)