You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by sebi-hgdata <gi...@git.apache.org> on 2015/08/07 15:31:59 UTC

[GitHub] camel pull request: readdinfg defaulting logic for prameter data t...

GitHub user sebi-hgdata opened a pull request:

    https://github.com/apache/camel/pull/588

    readdinfg defaulting logic for prameter data type

    Hey,
      It seems that this was removed somehow... 
      Without a default value an exception is thrown when generating the swagger models:
    ```
    15-08-07 15:50:45 WARN  ServletHandler:563 - /api-docs
    java.lang.IllegalArgumentException: Flat hash tables cannot contain null elements.
    	at scala.collection.mutable.FlatHashTable$HashUtils$class.elemHashCode(FlatHashTable.scala:390)
    	at scala.collection.mutable.HashSet.elemHashCode(HashSet.scala:41)
    	at scala.collection.mutable.FlatHashTable$class.addEntry(FlatHashTable.scala:136)
    	at scala.collection.mutable.HashSet.addEntry(HashSet.scala:41)
    	at scala.collection.mutable.HashSet.$plus$eq(HashSet.scala:60)
    	at com.wordnik.swagger.core.util.ModelUtil$$anonfun$modelsFromApis$1$$anonfun$apply$1$$anonfun$apply$4.apply(ModelUtil.scala:93)
    	at com.wordnik.swagger.core.util.ModelUtil$$anonfun$modelsFromApis$1$$anonfun$apply$1$$anonfun$apply$4.apply(ModelUtil.scala:91)
    	at scala.collection.immutable.List.foreach(List.scala:318)
    	at com.wordnik.swagger.core.util.ModelUtil$$anonfun$modelsFromApis$1$$anonfun$apply$1.apply(ModelUtil.scala:91)
    	at com.wordnik.swagger.core.util.ModelUtil$$anonfun$modelsFromApis$1$$anonfun$apply$1.apply(ModelUtil.scala:88)
    	at scala.collection.immutable.List.foreach(List.scala:318)
    	at com.wordnik.swagger.core.util.ModelUtil$$anonfun$modelsFromApis$1.apply(ModelUtil.scala:88)
    	at com.wordnik.swagger.core.util.ModelUtil$$anonfun$modelsFromApis$1.apply(ModelUtil.scala:88)
    	at scala.collection.immutable.List.foreach(List.scala:318)
    	at com.wordnik.swagger.core.util.ModelUtil$.modelsFromApis(ModelUtil.scala:88)
    ....
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sebi-hgdata/camel sebi/default_data_type

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/588.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #588
    
----
commit 9935da13fe31018fc6841360e4c553d4b85cca7b
Author: sebi <se...@softvision.ro>
Date:   2015-08-07T13:28:54Z

    readd defaulting logic

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] camel pull request: readding defaulting logic for parameter data t...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/camel/pull/588


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---