-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Libdoc: Store information about enums and TypedDicts used as argument types in spec files #3607
Comments
@pekkaklarck what do you think about the idea? Do you have any suggestions? |
This idea sounds good to me but I'm not certain what's the best way to implement it. Need to think about that more and should also think how to show enums in Libdoc HTML outputs. I don't think we can do changes to Libdoc specs in a patch version like RF 3.2.2 so need to wait for RF 3.3 or whatever the next bigger release will be. |
We had a discussion with BrowserLibrary team at what our use case for this would be and for our documentation it would make most sense if we could have a |
XML have now this format:
JSON:
|
Add them to specs (robotframework#3607) and show in HTML (robotframework#3783). Few things still to be fixed. See PR robotframework#3743 for details.
This is from the discussion in: https://robotframework.slack.com/archives/C015KB1QSDN/p1593278603282300?thread_ts=1593190150.106700&cid=C015KB1QSDN
I don't have a ready-made solution, so, how to do it is up to discussion...
One suggestion: add the enums used by the libspec to the libspec.
i.e.: something as
Then we could add
<arg type="MyEnum">myarg</arg>
in the libpsec (or officialize themyarg: MyEnum=Enum1
, which is already being used) so that the language server could identify that properly.The text was updated successfully, but these errors were encountered: