eclipse / lyo.designer

lyo.designer
Eclipse Public License 2.0
11 stars 10 forks source link

update Swagger to 2.2.0 #251

Closed jad-elkhoury closed 2 years ago

jad-elkhoury commented 2 years ago

Checklist

jad-elkhoury commented 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)