API Kit路由器模式验证

Ste*_*veS 5 mule mule-studio raml

有没有办法让API Kit Router验证传入模式?我在我的RAML文件中有以下内容,但它不验证传入的架构.

  - emails: |
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type" : "object",
        "properties" : {
          "email" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "emailOrigin" : {
            "type" : "string"
          }
        }
      }

resourceTypes: 
  - postbase:
      post:
        responses:
          200:
            body:
              application/json:
          500:
            body:
              application/json:
  - putBase:
      put:
        responses:
          200:
            body:
              application/json:
          500:
            body:
              application/json:

/emails:
  type: postbase
  post:
    description: |
      Recieve emails captured from various parts of the site.
    body: 
     schema: emails   
Run Code Online (Sandbox Code Playgroud)

noh*_*bee 0

据我所知,任何主体都对该模式有效。所有字段都是字符串,不是必需的,没有任何特定格式。尝试根据需要输入一些字段,看看会发生什么

干杯!