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

Add json bool configuration option to HTTP executor #578

Open
yohamta opened this issue May 31, 2024 · 2 comments
Open

Add json bool configuration option to HTTP executor #578

yohamta opened this issue May 31, 2024 · 2 comments
Labels
enhancement New feature to be implemented good first issue Good for newcomers

Comments

@yohamta
Copy link
Collaborator

yohamta commented May 31, 2024

Overview
Add a JSON boolean option to the HTTP executor configuration.

steps:
  - name: a step
    command: GET https://xxx
    executor:
      type: http
      config:
        json: true
    output: DATA1

This will format the result as standard JSON, including the status code and response headers:

{
  "status_code": 200,
  "headers": [
    "xxx": "yyy"
  ],
  "body": {
    "some_field": "some_value"
  }
}

Additional Context
#577 (comment)

@yohamta yohamta added good first issue Good for newcomers enhancement New feature to be implemented labels May 31, 2024
@halalala222
Copy link
Contributor

@yohamta
hi , can i try to work on this issue ?

@yohamta
Copy link
Collaborator Author

yohamta commented Aug 8, 2024

Hi @halalala222, thank you so much! Yes, please go ahead. Really appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature to be implemented good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants