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
What is the current behavior?
The CLI jar incorrectly reports a broken RAML file as "conforms=true"
What is the expected behavior?
Should say "conforms=false"
Please tell us about your environment:
AMF Version: amf-4.4.0-SNAPSHOT
AMF Distribution: Java CLI
Operating System: macOS
Other information
I have found a number of situations with validation of RAML 1.0 documents, which does properly report "conforms=false" when using "webapi-parser" and "amf-client-js" and "raml-js-parser-2". However the "AMF CLI" java tool falsely reports these as "conforms=true".
Here are the main files that are included in the archive.
Note the deliberate error at the second-last line, where petsSchemaBrokenKey should instead be petsSchema
#%RAML 1.0 ResourceType
description: Collection of <<resourcePathName>> in stock.
get:
description: Get a list of <<resourcePathName>>.
responses:
200:
body:
application/json:
type: <<rtypeCollection>>
example: <<exampleCollection>>
The text was updated successfully, but these errors were encountered:
Hi @dcrossleyau!
We fixed this wrong behavior of the CLI. The fix should be public and available in the next release of AMF, version 4.4.1. I'm closing this issue.
Thanks!
I'm submitting a ...
What is the current behavior?
The CLI jar incorrectly reports a broken RAML file as "conforms=true"
What is the expected behavior?
Should say "conforms=false"
Please tell us about your environment:
Other information
I have found a number of situations with validation of RAML 1.0 documents, which does properly report "conforms=false" when using "webapi-parser" and "amf-client-js" and "raml-js-parser-2". However the "AMF CLI" java tool falsely reports these as "conforms=true".
I have packaged a minimal example as test-pets.tar.gz
Using these tools the file is properly reported as invalid:
raml-js-parser-2 1.1.67
amf-client-js 4.3.0
webapi-parser 0.5.0
However, with today's CLI jar (built with Java 11 and sbt-1.3.13):
reports "conforms=true" ... but should not be so.
Here are the main files that are included in the archive.
Note the deliberate error at the second-last line, where
petsSchemaBrokenKey
should instead bepetsSchema
invalid-included-rtype-broken-key.raml
raml-shared/rtypes/collection.raml
The text was updated successfully, but these errors were encountered: