Hi,
I’m trying to use generated clients in python, with code coming from two NPL packages. I haven’t been able to have functions and objects for both packages in my generated client.
In details:
NPL code:
package iou;
@api
protocol[issuer, payee] Iou(var description: Text, var forAmount: Number) {};
package iks;
protocol[controlOwner] TestRun() {};
My pom file
<execution>
<id>streamlit-ui-iou</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/target/generated-sources/openapi/iou-openapi.yml</inputSpec>
<generatorName>python</generatorName>
<output>../streamlit-ui/generated-iou</output>
</configuration>
</execution>
<execution>
<id>streamlit-ui-iks</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/target/generated-sources/openapi/iks-openapi.yml</inputSpec>
<generatorName>python</generatorName>
<output>../streamlit-ui/generated-iks</output>
</configuration>
</execution>
and then installing sources
pip install ./generated-iks
pip install ./generated-iou
and whichever I install last I can use in the code, the other is unavailable.
How can I change my setup to be able to tab both into iks and iou generated code?