Skip to content

Commit

Permalink
hotfix response schema to get geofence rule
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaglodha committed Sep 17, 2024
1 parent aaa103b commit 421ebac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geoserverx/_sync/gsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def get_all_geofence_rules(self) -> Union[RulesResponse, GSResponse]:
"geofence/rules/", headers={"Accept": "application/json"}
)
if responses.status_code == 200:
return Rule.model_validate(responses.json())
return RulesResponse.model_validate(responses.json())
else:
results = self.response_recognise(responses.status_code)
return results
Expand Down

0 comments on commit 421ebac

Please sign in to comment.