Skip to content

feat: support raw JSON bodies in send step#108

Merged
vitormattos merged 5 commits intomainfrom
feat/raw-json-http-body-support
Mar 17, 2026
Merged

feat: support raw JSON bodies in send step#108
vitormattos merged 5 commits intomainfrom
feat/raw-json-http-body-support

Conversation

@vitormattos
Copy link
Copy Markdown
Member

@vitormattos vitormattos commented Mar 17, 2026

Summary

  • accept raw JSON request bodies in the generic Behat send step via PyStringNode
  • preserve body-specific headers such as Content-Type: application/json
  • keep the existing table-based behavior unchanged

Why

A consumer scenario in profile_fields needs to create workflow rules through the Nextcloud workflowengine OCS API using a nested JSON payload. Expressing that request directly in the feature file is more didactic than adding a domain-specific custom step, but the helper previously only supported tables and arrays.

Validation

  • exercised from the consumer app scenario that posts to the workflowengine global workflows OCS endpoint with inline JSON
  • consumer repo static analysis remained green after the change

Notes

This PR changes the shared helper only. The consumer app can update to the next released package version afterward.

Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
@vitormattos vitormattos merged commit 5a2c0e4 into main Mar 17, 2026
10 checks passed
@vitormattos vitormattos deleted the feat/raw-json-http-body-support branch March 17, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant