My JSON input is as below
{
"test" : ["t1259", "t2895"]
}
I want to generate RAML data type for the above as below but it is failing with the validation, please let me know whether the below RAML data type is the correct representation for the above JSON.
#%RAML 1.0 DataType
type: object
properties:
test:
type: array
items:
properties:
type: string
#%RAML 1.0
title: ValidatorApps
types:
InputType: !include example/json_schema.json
/validate:
description: "This call will validate the input payload"
post:
Please find the above raml.
Please find the
file code
Please find the
input json file
{ "test" : ["t1259", "t2895"] }