Skip to content

Conversation

@oeotvos
Copy link

@oeotvos oeotvos commented Apr 4, 2025

No description provided.

- "application/bson"
condition:
all:
- property: "requestBody",
Copy link
Member

Choose a reason for hiding this comment

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

property is parameters and not requestBody

image

Copy link
Author

Choose a reason for hiding this comment

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

I don't get it, I want to apply this rule 'Content-Type Header Requirement' only when requestBody is present

    condition:
        - property: "requestBody",
          exists: true

header: "X-Request-Id"
regex: "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
condition:
property: "responseBody"
Copy link
Member

Choose a reason for hiding this comment

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

should be header

@anton-sidelnikov anton-sidelnikov changed the title Draft of 2.6 Request and response header formats 2.6 Request and response header formats Jul 25, 2025
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.

2 participants