Closed jad-elkhoury closed 2 years ago
@berezovskyi This should handle your ticket on https://github.com/oslc-op/refimpl/pull/116
Note however that I faced problems when building the yaml file. A workaround for now is to NOT produce Swagger documentation for hte ResourceShape API. See the change in https://github.com/eclipse/lyo.designer/pull/251/files#diff-4896bbdb4c9a2eaff58fae328f3c7993447e08a4e0003fc28120cffdb81a0466
Exception produced:
Caused by: java.lang.IllegalArgumentException: Conflicting setter definitions for property "occurs": org.eclipse.lyo.oslc4j.core.model.Property#setOccurs(java.net.URI) vs org.eclipse.lyo.oslc4j.core.model.Property#setOccurs(org.eclipse.lyo.oslc4j.core.model.Occurs)
at com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder._selectSetterFromMultiple(POJOPropertyBuilder.java:561)
at com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder.getSetter(POJOPropertyBuilder.java:492)
at io.swagger.v3.core.jackson.ModelResolver.ignore(ModelResolver.java:1023)
Checklist