Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3727

Need help for resolving RAML error - ClassCastException

$
0
0

I am new RAML and I am writing api.raml with types.

While RAML verification I am getting below error -For raml specification am getting ClassCastException. Actually I have json like below -

{ “content”:[“nodeType”:”paragraph”,“content”:[]]}

I have added RAML specification like

content:   type: array   minItems: 0   maxItems: 100   properties:      nodeType:         type: string      content:          type: contentType    contentType:        type: object        additionalProperties: false        properties:            nodeType:              type: string       content:          type: contentType

Viewing all articles
Browse latest Browse all 3727

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>