RAML to jax-rs does not generate the model object for schemas type


#1

RAML to JAX-RS does not generate the model objects for choice element in the raml fiel.

I also tried put the choice schemas in separate files, still it does not generate. Is any thing wrong with this raml file?

#%RAML 0.8
title: Schema Validation Test
version: v1
/test:
post:
body:
application/json: &myreference
schema: |
{
"$schema": “http://json-schema.org/draft-03/schema#”,
“type”: “object”,
“properties”: {
“request”: {
“type”: “object”,
“required”: true,
“properties”: {
“fname”: {
“type”: “string”,
“required”: true
},
“lname”: {
“type”: “string”,
“required”: true
},
“mname”: {
“type”: “string”,
“maxLength”: 1

              },
              "books": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minItems": 1,
                  "maxItems": 5,
                  "uniqueItems": true
                },
                "required": true
              },
              "choice": {
                "type": [
                  {  "properties": {
                        "p1": {
                         "type": "integer",
                         "minimum": 10,
                         "maximum": 100,
                         "required": true
                      },
                     "p2": {
                        "type": "string",
                        "pattern": "^\\d{3}-\\d{3}-\\d{4}$",
                        "required": true
                      }
                    } 
                },
                  { 
                    "properties": {
                       "obj2p1": {
                         "type": "string",
                         "required": true
                        } 
                    }
                   }
                ],
                "required": true
              }
            }
          }
        }

      }

responses:
  200:
    body:
      application/json: *myreference
  400: &errorResponse
    body:
      application/json:
        schema: |
          {                
            "$schema": "http://json-schema.org/draft-03/schema#",
            "type": "object",
            "title": "error",
            "properties": {
              "error": {
                "properties": {
                  "errorCode": {
                    "type": "string",
                    "pattern": "^ERROR-\\d{4}$",
                    "required": true
                   },
                   "errorMessage": {
                     "type": "string",
                     "maxLength": 250,
                     "required": true
                  }
                }
              }
            }
              
          }
  500: *errorResponse