valid-raml-syntax
Overview
This rule belongs to the raml-validation
ruleset and states that:
RAML API definitions must be valid YAML 1.2-compliant documents.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | Provided RAML API definition is invalid. |
Code | RAML_V001 |
Type | Validation |
Rule System | Semantic |
Broad Category | Basic Structure |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | raml semantic validation yaml syntax |
Suggested Fixes
- Ensure that the file uses valid YAML syntax.
- Ensure that all properties in the RAML file are indented correctly.
- Ensure that each element in the RAML file has the expected type.
- Ensure that an array is not defined as an object or vice versa.
- Ensure that where a number is expected, a string value is not provided, etc.
- For objects, ensure that each property has a correct type assigned to it.
For More Information
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#markup-language
- http://www.yaml.org/spec/1.2/spec.html.
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md
- https://github.com/raml-org/raml-spec/blob/master/versions/raml-08/raml-08.md
- https://docs.apimatic.io/rulesets/overview/