Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

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

Open
mvanwely opened this issue Sep 11, 2020 · 1 comment
Open

Comments

@mvanwely
Copy link

[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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant