Skip to content

feat: added response size to respect cli and json outputs#2355

Merged
DmitryAnansky merged 3 commits intomainfrom
feat/add-responce-size-in-respect-output
Oct 9, 2025
Merged

feat: added response size to respect cli and json outputs#2355
DmitryAnansky merged 3 commits intomainfrom
feat/add-responce-size-in-respect-output

Conversation

@DmitryAnansky
Copy link
Contributor

@DmitryAnansky DmitryAnansky commented Oct 9, 2025

What/Why/How?

Added response size in bytes to Respect terminal and JSON file outputs:

JSON file example:

{
  "files": {
    "small.arazzo.yaml": {
      "executedWorkflows": [
        {
          "type": "workflow",
....
          "executedSteps": [
            {
              "type": "step",
....
              "response": {
                ....
                "size": 267
              },
....
  },
....
}

Reference

Related: https://github.com/Redocly/redocly/issues/18301

Testing

Screenshots (optional)

Screenshot 2025-10-09 at 15 26 36

Check yourself

  • Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • All new/updated code is covered by tests
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update considered

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2025

🦋 Changeset detected

Latest commit: 57f0b48

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@redocly/respect-core Minor
@redocly/cli Minor
@redocly/openapi-core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

Command Mean [s] Min [s] Max [s] Relative
redocly lint packages/core/src/benchmark/benches/rebilly.yaml 1.457 ± 0.032 1.418 1.507 1.01 ± 0.03
redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml 1.448 ± 0.021 1.419 1.478 1.00

@DmitryAnansky DmitryAnansky requested a review from malis42 October 9, 2025 12:46
@DmitryAnansky DmitryAnansky marked this pull request as ready for review October 9, 2025 12:51
@DmitryAnansky DmitryAnansky requested review from a team as code owners October 9, 2025 12:51
Copy link
Collaborator

@tatomyr tatomyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left minor comments. Otherwise looks good

@DmitryAnansky DmitryAnansky merged commit b5e419e into main Oct 9, 2025
50 of 51 checks passed
@DmitryAnansky DmitryAnansky deleted the feat/add-responce-size-in-respect-output branch October 9, 2025 14:03
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.

4 participants