Annotation Type RequestBody

    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      booleanrequired
      Whether body content is required.
    • Element Detail

      • required

        boolean required
        Whether body content is required.

        Default is true, leading to an exception thrown in case there is no body content. Switch this to false if you prefer null to be passed when the body content is null.

        Since:
        3.2
        Default:
        true