private static Object getExamplesFromBodyParameter ( Parameter parameter ) { Object examples = ( ( BodyParameter ) parameter ) . getExamples ( ) ; if ( examples == null ) { examples = parameter . getVendorExtensions ( ) . get ( "x-examples" ) ; } return examples ; }
Retrieves example payloads for body parameter either from examples or from vendor extensions .