def test_process_request_body_no_name():
  """Test _process_request_body with a schema that has no properties (unnamed)"""
  operation = Operation(
      requestBody=RequestBody(
          content={'application/json': MediaType(schema=Schema(type='string'))}
      )
  )
  parser = OperationParser(operation, should_parse=False)
  parser._process_request_body()
  assert len(parser._params) == 1
  assert parser._params[0].original_name == ''  # No name
  assert parser._params[0].param_location == 'body'
Test _process_request_body with a schema that has no properties (unnamed)
tests/unittests/tools/openapi_tool/openapi_spec_parser/test_operation_parser.py