needs_extra_options only for selected need types #1087
Replies: 2 comments 3 replies
-
Thanks for the idea. 👍 The question is, what is the goal of having such a config?
You can take this idea further by also allowing specific values only for specific options. Here are some already existing solutions, that make such checks possible, but with additional configs outside the
I'm not sure if Sphinx-Needs should prefer a model definition in its package, or if this is something that can be introduced from outside, like the Sphinx-Modelling package does. |
Beta Was this translation helpful? Give feedback.
-
Related discussion is here #601 @marcin-nowacki We have a solution at our company for this. Please contact me directly 😄 |
Beta Was this translation helpful? Give feedback.
-
Currently I can only add needs_extra_options to all needs. I would like to however add certain options to certain need types. For example I can imagine following configuration file:
another possibility would be to add "private" options in the needs_types definition, for example option1 and option2 in req:
similar approach would likely be needed to be applied to needs_extra_links and maybe this is even more important to have this possibility there where wrong options could be used for linking.
Beta Was this translation helpful? Give feedback.
All reactions