pvarki / python-rasenmaeher-api

1 stars 0 forks source link

All APIs that return just success/error with possibly human-readable messages should use same response schema #36

Closed rambo closed 11 months ago

rambo commented 1 year ago

https://github.com/pvarki/python-libpvarki/blob/main/src/libpvarki/schemas/generic.py#L8 should cover these use cases.

Things that need to return machine-readable extra information of course need their own schemas.

https://github.com/pvarki/docker-rasenmaeher-integration/actions/runs/6126663424/job/16631101326?pr=16#step:9:86 demonstrates a problem with ad-hoc schemas.

karppo commented 11 months ago

Default schema was added to those I found using about same response schema.