Amartus / yang2swagger

Yang to swagger generator
Eclipse Public License 1.0
32 stars 21 forks source link

Support for NMDA Yang specifications #8

Closed bartoszm closed 4 years ago

bartoszm commented 6 years ago

NMDA is described in https://tools.ietf.org/html/draft-dsdt-nmda-guidelines-01

As the generator is compatible with these guidelines it might be useful to explore how to use read-only write-only properties (https://swagger.io/docs/specification/data-models/data-types/) to better support that. Any thoughts?

mkukulski commented 4 years ago

After reading both links I see simple solution: all nodes with config false should have read-only property so that they are return in GET but not supported in POST.

bartoszm commented 4 years ago

Hi @mkukulski, The tool already support the config: false nodes as you already described