Skip to content

Commit

Permalink
contents -> text
Browse files Browse the repository at this point in the history
  • Loading branch information
myedibleenso committed Nov 11, 2024
1 parent 200b868 commit 04abb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lum/odinson/rest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def validate_grammar(
) -> Union[bool, OdinsonErrors]:
"""Inspects and validates an Odinson grammar"""
endpoint = f"{self.address}/api/validate/grammar"
res = self._post_text(endpoint=endpoint, contents=grammar)
res = self._post_text(endpoint=endpoint, text=grammar)
if res.status_code == 200:
return OdinsonBaseAPI.status_code_to_bool(res.status_code)
else:
Expand Down

0 comments on commit 04abb0e

Please sign in to comment.