Closed ca-stefan-cordes closed 5 years ago
Looks like the problem is that generator is looking for securitySchemes only (which are empty on root level in case they come from library):
path "securitySchemes" (id=239)
from org.raml.v2.internal.impl.commons.nodes.RamlDocumentNode (id=262)
but path is uses/*/
Thread [main] (Suspended) org.raml.yagi.framework.util.NodeSelector.selectFrom(java.lang.String, org.raml.yagi.framework.nodes.Node) line: 53 org.raml.yagi.framework.model.ModelProxyBuilder$SimpleProxy.fromNodeKey(java.lang.reflect.Method, java.lang.reflect.Type) line: 88 org.raml.yagi.framework.model.ModelProxyBuilder$SimpleProxy.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]) line: 70 com.sun.proxy.$Proxy7.securitySchemes() line: not available org.mule.raml.impl.v10.model.ApiModelImpl.getSecuritySchemes() line: 115
Adding Security Schemes from "getSecuredBy" looks like the solution.
Thanks for the PR, it is ready to be consumed on the 0.11 version
Describe the bug Having a raml file with
with canda-commons.raml
creates an Client without authentication while
To Reproduce Steps to reproduce the behavior:
Expected behavior public MuletemplateClient(java.lang.String baseUrl, java.lang.String username, java.lang.String password) { should be generated.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context