Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface Inherits others Interface #180

Open
cacosta2018 opened this issue Oct 2, 2018 · 5 comments
Open

Interface Inherits others Interface #180

cacosta2018 opened this issue Oct 2, 2018 · 5 comments

Comments

@cacosta2018
Copy link

Hello Abel, I wanted to consult you if there is a way to handle an interface that inherits other interfaces. Within my application I have this situation and when validating the json generated it tells me the following error Duplicate key post, this because the json duplicates the documentation of the methods that correspond to the inheritance of the interface, I attach the Json generated in line 233 You can see that there is a duplicity. I remain attentive to your comments.
UnderWritingService.txt
UnderWritingService.txt

@xkzt0
Copy link

xkzt0 commented Oct 2, 2018

Hide all the unwanted tags in the web.config.

@cacosta2018
Copy link
Author

Thanks @xkzt0 for your help but the problem persists.
I need to be able to indicate within the schema of inheritance swagger. For what I checked inside the Schema class there is a property that is ParentSchema but how can I use that property since this class is internal. I need to do this since my project has interface inheritance and the json that generates swagger has errors that indicate that there is a duplicate key because the legacy methods document them more than once.
Please any suggestions

@justin0522
Copy link
Contributor

@cacosta2018 do you add ServiceContract Attribute on both interfaces ? even implement class ?

@cacosta2018
Copy link
Author

Hi @justin0522 yes on both interface

@justin0522
Copy link
Contributor

@cacosta2018 maybe you should remove ServiceContract Attribute from interfaces, add it on implement class. Or merge two interfaces to one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants