text: const { oas3 } = require('@stoplight/spectral-formats');
  const { truthy } = require('@stoplight/spectral-functions');
  
  module.exports = {
    description:
      'Request bodies and non-204 responses should define a content object',
    given: [
      "$.paths[*][*].responses[?(@property != '204' && @property != '202' && @property != '101')]",
      '$.paths[*][*].requestBody'
    ],
    severity: 'warn',
    formats: [oas3],
    resolved: true,
    then: {
      field: 'content',
      function: truthy
    }
  };
  