Skip to main content

The following simple api spec (RAML), which parses just fine, when attempting a mockService, I get the following error, which you can see the URI it's complaining about matches the spec. Is this a bug or what is wrong with my spec?

 

this is the url generated: https://anypoint.mulesoft.com/mocking/api/v1/links/0a14c5f9-8339-4986-91e2-0362ef8638c3/localhost-base/v1.0.0/astring

 

this is the error:

 

{

"code": "INVALID_BASE_URI_PATH",

"message": "Error validating the base uri for the path: /localhost-base/v1.0.0/astring. Base Uri path is not matching to the one provided in the spec."

}

 

this is the spec:

# %RAML 1.0

title: mockServiceError

version: v1.0.0

 

description: API Definition showing mock service error

mediaType:

- application/json

 

protocols:

- HTTPS

 

baseUri: https://apigateway-nonprod.blah.com/{environment}base/{version}/

 

baseUriParameters:

environment:

description: localhost, Dev, QA, Stage, Production

enum:

- localhost-

- dev-

- qa-

- stage-

- ""

 

/astring:

get:

responses:

200:

body:

application/json:

properties:

somestring:

type: string

example: Eureka

1 answer
0/9000