I have a sample API definition with visibility: RESTRICTED and visibleRoles: role1,role2. When I use apictl init SampleAPI --definition , the visibleRoles field is missing in the generated api.yaml file. Is there an existing defect/issue for that ?
Yes, the visibleRoles field is not getting added when generating api.yaml using apictl init in APICTL 3.2.1 which is an issue. Thank you very much for informing this. Will look into that.
Can you kindly add visibleRoles fields to your generated api.yaml as a workaround and proceed until this is fixed in APICTL 3.2.1? (This is already fixed in APICTL 4.0.0-Alpha2.)
Related
I am using Capella 1.4.0 and I would like to put my diagrams in my wordx using M2DOC, only if the attribute "Visible in documention" of the sheet "Management" is set to true.
I don't see the method isVisibleInDoc of the DREpresentation object.
Someone can help me please ?
This is not supported yet, see https://github.com/ObeoNetwork/Capella-Extensions/issues/16
i have an api(web service) in django like this:
http://127.0.0.1:9000/api/back_office/appointments/days/?branch=1
that in swagger i want to input query parameter named branch but don't work this(all of my Apis have same problem!!).
before, i use older version of swagger and for enter query parameters use like --param_name syntax, but now in django-rest-swagger==2.1.1 don't work this syntax.
can anyone help me?
Perhaps i should use get_customizations in OpenAPIRenderer class?
Thanks in advance.
For adding query parameters to swagger please, go through this post
According to the documentation we can load jars dynamically at module creation time by exploiting the attribute module.classloader in the .properties file :
http://docs.spring.io/spring-xd/docs/1.3.1.RELEASE/reference/html/#module-class-loading
I spent two days trying to test this feature. It does not work. The option module.classloader seems to be simply ignored
I did not find any string named module.classloader in the XD code. But I found another one called module.classpath in this class:
https://github.com/spring-projects/spring-xd/blob/master/spring-xd-module/src/main/java/org/springframework/xd/module/options/ModuleUtils.java
The code in the above class seems to match the documentation. But unfortunalletely it does not work too. My classes are not found and I get java.lang.ClassNotFoundException
I have module option named dir4jars where I put the jars to load at creation time (when I issue job create --name xx --defintion ..). It's a directory, and I have tested the following possibilities, with both module.classpath and module.classloader :
module.classpath=${dir4jars}/*.jar
module.classloader=${dir4jars}/*.jar
.
.
job create --name jobName --definition "myJobModuleName --dir4jars=C:/ELS/Flash/libxd" --deploy
and
job create --name jobName --definition "myJobModuleName --dir4jars=file:C:/ELS/Flash/libxd" --deploy
I need the dir4jars to be absolute and outside XD home.
So my questions:
What's the right option to use for this dynamic load? module.classpath or module.classloader ?
How can I set an absolute directory as I mentioned above?
Many thanks.
I think it has to be module.classpath and module.classloader looks like a mistake in the documentation. Does this work when you explicitly use module.classpath=file:C:/ELS/Flash/libxd?
As a side note: Please consider using Spring Cloud Data Flow which is the successor of Spring XD.
I want to extend the Wso2 CEP product in our needs and try to write a custom condition as indicated in this official wso2 cep link.
However it says that "This is the latest, released WSO2 Complex Event Processor documentation (Version 2.1.0)." at the top of the page, it seems that it is outdated or having wrong information.
For example it says that,
To write a custom condition, create a class extending "org.wso2.siddhi.core.executor.conditon.AbstractGenericConditionExecutor", add the SiddhiExtionsion annotation, compile that class, and add the jar file to the class path /repertory/components/lib. Then add the fully-qualified class name for the implementation class in a new line, to the siddhi.extension file located at /repertory/conf/siddhi.
(I am assuming "repertory" is "repository"). There is no file or directory in official WSO2 CEP package as "/repertory/conf/siddhi" or "siddhi.extension", (wso2cep-2.1.0).
Is there a thing that i missed in this documentation, if not, can you recommend a new documentation about to write a custom condition in WSO2 CEP?
It is a bug, there is a folder called "sidddhi" in the , it needs to be "siddhi" (this is a small typo error).. Please change that directory name to "siddhi" and perform your task ("sidddhi" to "siddhi")...
Yes.. I have corrected the doc also with the correct "repository"... Thanks for the notification...
Regards,
Mohan
I use solr+django-haystack
I set settings.HAYSTACK_INCLUDE_SPELLING = True
and rebuild index
I'm trying to get any suggestion using:
SearchQuerySet().auto_query('tryng ani word
her').spelling_suggestion()
But I always get None
What should I do to get at least one working suggestion ? may be I
need add some configuration into solr config or have some specific
data indexed ?
Depending on what version of solr you're using you could use EdgeNGrams or the TermsComponent (if your using 1.4). Check out these links, they should get you started in the right direction. I haven't used haystack, so I don't know if there's an easy way to use leverage these solutions in that framework.
EdgeNGrams:
www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/
TermsComponent:
wiki.apache.org/solr/TermsComponent
www.lucidimagination.com/search/document/CDRG_ch07_7.13.3
you need to add spelling support to your default request handler in solr conf
see this please
http://wiki.apache.org/solr/SpellCheckComponent