Example #1
0
File: RAML.php Project: 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;
 }