The body of an operation in the backend's document has fields: the properties of its JSON schema (with its $refs and allOf followed), and with "required" fields the schema requires. The fields are named with commas between them.
Examples
Then the backend should document "POST /v1/products" with the required fields "name, price"
And the backend should document "POST /v1/auth/login" with the required fields "username, password"
Then the backend should document "POST /v1/products" with the fields "name"
And the backend should document "PATCH /v1/products/{id}" with the fields "name, price"
Then the backend should document "PUT /v1/users/{id}" with the required fields "email"
Pattern
Then(/^the backend should document "([A-Z]+) ([^"]+)" with the (required )?fields "([^"]+)"$/, …)
Part of @webship-js/nestjs-steps (github.com/webship/nestjs-steps), a step pack for Webship-js 2.0.x.