You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented this feature as well as other missing properties in my fork. It's located in class TypeConverter. My fork is not crafted enough to patch into this project though.
Do mind that minimum and maximum in swagger are not equivalent to YANG's range, since YANG supports multiple ranges for a type.
I converted swagger-generator/src/test/resources/simplest.yang, which has an integer with a range of
1
to4096
:Although, in the swagger it isn't generating the
minimum
andmaximum
values associated with the integer as shown here: https://swagger.io/docs/specification/data-models/data-types/#range.If anyone has tips on where to look, I can try and submit a patch.
The text was updated successfully, but these errors were encountered: