camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavel Heyman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9793) PropertyPlaceHolder not loading Property, thinks it is a Parameter
Date Fri, 01 Apr 2016 18:38:25 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222137#comment-15222137
] 

Flavel Heyman commented on CAMEL-9793:
--------------------------------------

Still displays as: 
{code}
{
name: "{BASE_URL}",
in: "path",
description: "",
required: true,
type: "string"
}
{code}

> PropertyPlaceHolder not loading Property, thinks it is a Parameter
> ------------------------------------------------------------------
>
>                 Key: CAMEL-9793
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9793
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-swagger
>    Affects Versions: 2.16.2, 2.17.0
>            Reporter: Flavel Heyman
>            Priority: Minor
>              Labels: propertyplaceholder,
>
> When loading a standard rest service into Camel and setting up Swagger.
> {code}
> rest("{{BASE_URL}}").get("/{customerId}").description("...")...
> {code}
> The {{Base_URL}} portion is
> 1. interpreted as a parameter much like {customerId}, i.e. the JSON displays: "{BASE_URL}"
and "customerId" as the parameter name (removing outside curly brace)
> 2. the associated property is not loaded from the properties file
> The Property Place Holder portion though works for the rest-dsl configuration:
> {code}
>  restConfiguration().apiProperty("api.title", "{{spring.application.name}}")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message