module.exports = {
  properties: {
    verb: {
      description: 'The HTTP method',
      type: 'string',
      required: ['GET', 'PUT', 'POST', 'DELETE', 'PATCH', 'HEAD']
    },
    requestPath: {
      description: 'The URL path',
      type: 'string',
      minLength: 1
    },
    externalDocs: {
      description: 'The public documentation for the given operation',
      type: 'object',
      required: ['description', 'url'],
      properties: {
        description: {
          type: 'string'
        },
        url: {
          type: 'string'
        }
      }
    },
    operationId: {
      type: 'string',
      minLength: 1
    },
    parameters: {
      description:
        'Parameters to the operation that can be present in the URL path, the query, headers, or a POST body',
      type: 'array'
    }
  }
}
