예제 #1
0
파일: RAML.php 프로젝트: RETFU/RREST
 /**
  * {@inheritdoc}
  */
 public function getRequestPayloadBodySchema($contentType)
 {
     $bodies = $this->method->getBodies();
     if (empty($bodies) === false) {
         try {
             return (string) $this->method->getBodyByType($contentType)->getSchema();
         } catch (\Exception $e) {
         }
     }
     return false;
 }