@@ -954,16 +954,16 @@ class Instrument(BaseModel):
954954class 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