raml-for-jax-rs icon indicating copy to clipboard operation
raml-for-jax-rs copied to clipboard

RAML 1.0 protocol values http and https are not parsed according to spec

Open mvanwely opened this issue 4 years ago • 1 comments

[ERROR] Failed to execute goal org.raml.jaxrs:raml-to-jaxrs-maven-plugin:3.0.7:generate (default) on project codegen: Error generating Java classes from: null: [Invalid element https for protocols. -- /code/checkout-codegen/src/main/resources/ [line=5, col=12]] -> [Help 1]

Protocols The OPTIONAL protocols node specifies the protocols that an API supports. If the protocols node is not explicitly specified, one or more protocols included in the baseUri node is used; if the protocols node is explicitly specified, the node specification overrides any protocol included in the baseUri node. The protocols node MUST be a non-empty array of strings, of values HTTP and/or HTTPS, and is case-insensitive.

The following is an example of an API endpoint that accepts both HTTP and HTTPS requests.

#%RAML 1.0
title: Salesforce Chatter REST API
version: v28.0
protocols: [ HTTP, HTTPS ]
baseUri: https://na1.salesforce.com/services/data/{version}/chatter```

mvanwely avatar Sep 11 '20 16:09 mvanwely

In addition: Error message returns null for the file that generated the issue.

mvanwely avatar Sep 11 '20 16:09 mvanwely