Open stanislav-chetvertkov opened 2 years ago
This seems like a reasonable strategy.
Tracing through ProtocolGenerator
's fromSwagger
, it looks like it should be possible to conditionally enable this by just make extractProperties(model)
return value: String Refined ...
to bypass this rejection
The other half is whether $ref
's will also need special casing, I would hope that it just works.
When referencing primitive types with added validation properties the information on validation gets lost
generates
a possible solution is to treat primitive objects with validation as classes during the protocol generation phase