You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running code below with each of the RAML inputs provided should fail or report validation error because according to RAML 1.0 spec provided RAML inputs are invalid.
The spec says:
title ... Its value MUST be a non-empty string.
content ... Its value MUST be a non-empty string and MAY be formatted using markdown.
#%RAML 1.0title: ZEncoder APIdocumentation:
- title:
content: | Welcome to the _Zencoder API_ Documentation.
JavaScript Code
constamf=require('amf-client-js')constramlStr=''// Pick one of the above RAML inputsasyncfunctionmain(){awaitamf.AMF.init()constmodel=awaitamf.AMF.raml10Parser().parseStringAsync(ramlStr)letreporttry{report=awaitamf.AMF.validate(model,amf.ProfileNames.RAML10,amf.MessageStyles.RAML)}catch(e){console.log(e.toString())}if(!report.conforms){report.results.map(res=>{console.log(`${res.level} - ${res.message}`)})}}main()
The text was updated successfully, but these errors were encountered:
Issue
Running code below with each of the RAML inputs provided should fail or report validation error because according to RAML 1.0 spec provided RAML inputs are invalid.
The spec says:
Spec link:
https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#user-documentation
amf-client-js version
3.1.9
RAML Inputs
JavaScript Code
The text was updated successfully, but these errors were encountered: