Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/fast-snakes-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@redocly/respect-core": minor
"@redocly/cli": minor
---

Added response size to the `Respect` terminal and JSON file outputs.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should not follow the default behavior to break and return if onFailure
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -90,6 +91,7 @@ exports[`should not follow the default behavior to break and return if onFailure
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -228,6 +230,7 @@ exports[`should not follow the default behavior to break and return if onFailure
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ exports[`should implicitly add content type header based on requestBody.content
    Response status code: 204
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {}

Expand Down Expand Up @@ -67,6 +68,7 @@ exports[`should implicitly add content type header based on requestBody.content
    Response status code: 400
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "type": "http://example.com",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`should pass inputs to step target workflow with additional input parame
    Response status code: 400
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`should pass inputs to step target workflow with additional input parame
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should use inputs from CLI and env 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -96,6 +97,7 @@ exports[`should use inputs from CLI and env 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "message": "Museum general entry ticket purchased",
Expand All @@ -122,6 +124,7 @@ exports[`should use inputs from CLI and env 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -211,6 +214,7 @@ exports[`should use inputs from CLI and env 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ exports[`should hide sensitive input values 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -95,6 +96,7 @@ exports[`should hide sensitive input values 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -245,6 +247,7 @@ exports[`should hide sensitive input values 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should resolve outputs access syntax variations 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -96,6 +97,7 @@ exports[`should resolve outputs access syntax variations 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "message": "Museum general entry ticket purchased",
Expand Down Expand Up @@ -126,6 +128,7 @@ exports[`should resolve outputs access syntax variations 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -272,6 +275,7 @@ exports[`should resolve outputs access syntax variations 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down Expand Up @@ -306,6 +310,7 @@ exports[`should resolve outputs access syntax variations 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "6744a0da-4121-49cd-8479-f8cc20526495",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should replace values in the request body 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "6744a0da-4121-49cd-8479-f8cc20526495",
Expand Down Expand Up @@ -57,6 +58,7 @@ exports[`should replace values in the request body 1`] = `
    Response status code: 400
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "type": "object",
Expand All @@ -81,6 +83,7 @@ exports[`should replace values in the request body 1`] = `
    Response status code: 400
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "type": "object",
Expand All @@ -105,6 +108,7 @@ exports[`should replace values in the request body 1`] = `
    Response status code: 400
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`should use inputs from CLI and env to map with resolved refs 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -88,6 +89,7 @@ exports[`should use inputs from CLI and env to map with resolved refs 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -162,6 +164,7 @@ exports[`should use inputs from CLI and env to map with resolved refs 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -239,6 +242,7 @@ exports[`should use inputs from CLI and env to map with resolved refs 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -393,6 +397,7 @@ exports[`should use inputs from CLI and env to map with resolved refs 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down Expand Up @@ -427,6 +432,7 @@ exports[`should use inputs from CLI and env to map with resolved refs 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ exports[`should reveal masked input values 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -95,6 +96,7 @@ exports[`should reveal masked input values 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -245,6 +247,7 @@ exports[`should reveal masked input values 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`should use error severity level 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -101,6 +102,7 @@ exports[`should use error severity level 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down Expand Up @@ -142,6 +144,7 @@ exports[`should use error severity level 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`should use off severity level 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -101,6 +102,7 @@ exports[`should use off severity level 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down Expand Up @@ -142,6 +144,7 @@ exports[`should use off severity level 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`should use warn severity level 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -101,6 +102,7 @@ exports[`should use warn severity level 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down Expand Up @@ -142,6 +144,7 @@ exports[`should use warn severity level 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`should make request with X-API-KEY in header 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should make request with Authorization header \`Basic ...\` 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should make request with Authorization header \`Bearer ...\` 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should make request with Authorization header \`Bearer ...\` using OAut
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should merge x-security schemes on workflow level to steps 1`] = `
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down Expand Up @@ -97,6 +98,7 @@ exports[`should merge x-security schemes on workflow level to steps 1`] = `
    Response status code: 201
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      {
       "eventId": "dad4bce8-f5cb-4078-a211-995864315e39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`should make request with Authorization header \`Bearer ...\` using Open
    Response status code: 200
    Response time: <test> ms
    Response Headers: <response headers test>
    Response Size: <test> bytes
    Response Body:
      [
       {
Expand Down
Loading
Loading