Errors in YAML generated from Swagger UI

Viewed 3258

I have generated YAML file from Swagger editor and it give me lots of errors corresponding to LocalDate.

Corresponding to this line : $ref: '#/definitions/LocalDate'

I get this error:

Semantic error at definitions.SegmentsIncludeEndCouponScheduleDO.allOf.1.properties.segmentDates.items.$ref $refs must reference a valid location in the document Jump to line 1926

Any pointers on how to resolve this.

Edit:

Just to add some more context. I have an application where we created RESTful Webservice using Spring Boot which was integrated with Swagger. Now we want to integrate it with OpenAPI, so I am trying to generate YAML file from Swagger and then generate java stubs from it.

0 Answers
Related