mulesoft-labs / raml-for-jax-rs

This project is all about two way transformation of JAX-RS-annotated Java code to RAML API description and back.
Other
296 stars 181 forks source link

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

Open mvanwely opened 3 years ago

mvanwely commented 3 years ago

[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 commented 3 years ago

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