swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

ComposedModel without implementation of clone method

Open rojeda-desp-lp opened this issue 11 years ago • 6 comments

What is the cause? Is it a bug?

rojeda-desp-lp avatar Jul 20 '15 18:07 rojeda-desp-lp

What?

webron avatar Jul 20 '15 18:07 webron

Sorry for my poor description.

I want use the clone method of all Swagger Models that implement "Model" interface. But i saw that the object "ComposedModel" doesn't implement this method. The "AbstractModel" returns null in this case.

For this reason, I want know if there is a bug.

I am using the clone method for merging of more than one swagger document.

rojeda-desp-lp avatar Jul 20 '15 19:07 rojeda-desp-lp

Fair enough. Feel free to submit a PR for it.

webron avatar Jul 22 '15 12:07 webron

+1 Looks more like a bug than a feature...

despegargcampelo avatar Aug 31 '15 18:08 despegargcampelo

+1 and submitting this solution as it removes a bug that's impairing me.

arosenber avatar Sep 01 '15 23:09 arosenber

Solution merged in master, thanks @arosenber.

webron avatar Sep 07 '15 12:09 webron