Skip to content

Commit

Permalink
fix: adapts entity-type-model to allow for hyphens in key
Browse files Browse the repository at this point in the history
  • Loading branch information
sennierer committed Aug 23, 2023
1 parent a063969 commit c209647
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion intavia_backend/models_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,13 @@ class StatsEntityType(BaseModel):
person: PositiveInt = Field(default=0, rdfconfig=FieldConfigurationRDF(path="personCount"))
place: PositiveInt = Field(default=0, rdfconfig=FieldConfigurationRDF(path="placeCount"))
group: PositiveInt = Field(default=0, rdfconfig=FieldConfigurationRDF(path="groupCount"))
culturalHeritageObject: PositiveInt = Field(default=0, rdfconfig=FieldConfigurationRDF(path="culturalHeritageObjectCount"))
culturalHeritageObject: PositiveInt = Field(default=0, alias="cultural-heritage-object", rdfconfig=FieldConfigurationRDF(path="culturalHeritageObjectCount"))

class Config:
RDF_utils_catch_errors = True
RDF_utils_error_field_name = "errors"
RDF_utils_move_errors_to_top = True
allow_population_by_field_name = True


EntityEventRelation.update_forward_refs()
Expand Down

0 comments on commit c209647

Please sign in to comment.