Forum Discussion
5 Replies
Sort By
- MarcusJModerator
Hi,
I did a quick test with an API and the csharp and java codegen looks to be working. Please let us know which API you are using and if it is private please add swaggerhub-support as a collaborator so we can look further into this.
Regards,
Marcus
SmartBear Support
- paduffyOccasional Contributor
- fehguyStaff
Hi! Thanks for the information. I believe the issue is in the FrameSubscription model:
packetType: description: ... type: array items: { enum: ["UDP", "ICMPV6", "PA", "PAS", "PC", "PCS"] }
Please try changing the items like such:
packetType: description: ... type: array items: type: string enum: ["UDP", "ICMPV6", "PA", "PAS", "PC", "PCS"]
While it is legal in JSON Schema to let the type of an attribute (items in this case) be defined by the enum, it is not supported in the specification. So being explicit with the type: string should solve the problem.
Related Content
- 8 years ago
- 5 years ago
- 5 years ago
Recent Discussions
- 12 days ago
- 31 days ago