Forum Discussion
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
- fehguy8 years agoStaff
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.
- paduffy8 years agoOccasional Contributor
Here is the offending text ...
packetType:
description: The type of frames to be echoed to the listener. Currently supported - UDP datagram, ICMPv6 message, PAN Advert frame, PAN Advert Solicit frame, PAN Configuration frame, PAN Configuration Solicit frame. MOre than one frame type may be specified.
type: array
items: {
enum: ["UDP", "ICMPV6", "PA", "PAS", "PC", "PCS"]
}An array of enum values.
- paduffy8 years agoOccasional Contributor
It did solve the problem, thanks.
But note that SwaggerHub editor gives this text the green light, csharp code gen failed, and no detail provided re: the failure.
Related Content
- 8 years ago
- 5 years ago
- 5 years ago
- 9 years ago
Recent Discussions
- 11 days ago
- 2 months ago