Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request body with message should be required in terminate agreement #95

Open
kmazurek opened this issue Jan 22, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@kmazurek
Copy link

kmazurek commented Jan 22, 2021

API: Market
Endpoint: POST /agreements/{agreementId}/terminate (on both provider and requestor APIs)

For the above endpoint, only agreementId parameter is marked as required in the API spec. Request body is marked as optional (and is generated as such). However, using this endpoint I found out that the request body is required and must include a message field.

Otherwise, the server returns a 400 with either Json deserialize error: EOF while parsing a value at line 1 column 0 or Json deserialize error: missing field message at line 1 column 2, depending on whether we pass an empty request body or not.

@kmazurek kmazurek added the bug Something isn't working label Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant