juju schema doesn't contain docs

Bug #1882571 reported by Jeff Pihach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Low
Simon Richardson

Bug Description

The current js libjuju contains full documentation[0] for the Juju API. This was possible because the old schema contained a segment[1] for the documentation. It would be great if we could add that back in so that we can retain this documentation going forward. As I understand it, it's the only source of documentation for the Juju API.

ex)

      "Name": "Action",
      "Version": 2,
      "Doc": "ActionAPI implements the client API for interacting with Actions\n",
      "Methods": [
        {
          "Name": "Actions",
          "Doc": "Actions takes a list of ActionTags, and returns the full Action for\neach ID.\n",
          "Param": {
            "Name": "github.com/juju/juju/apiserver/params#Entities"
          },
          "Result": {
            "Name": "github.com/juju/juju/apiserver/params#ActionResults"
          }
        },

[0] https://github.com/juju/js-libjuju/blob/master/api/doc/action-v2.md
[1] https://github.com/juju/js-libjuju/blob/master/schemas/schema.json starts at line 27077

Revision history for this message
Simon Richardson (simonrichardson) wrote :

So I noticed this was broken sometime ago. I did spend a very short bit of time attempting to replicate it in juju/juju directly, so that you always had the latest documentation against the code itself. It's not finished and any updates will be gratefully appreciated and if somebody wants to update it with the latest Canonical branding, then I would be over the moon with that.

The documentation for how you view it is here https://discourse.juju.is/t/schemadocs/1945

Pen Gale (pengale)
Changed in juju:
status: New → Won't Fix
Revision history for this message
Simon Richardson (simonrichardson) wrote :

PR with type and method documentation: https://github.com/juju/juju/pull/11686

Changed in juju:
assignee: nobody → Simon Richardson (simonrichardson)
importance: Undecided → Low
status: Won't Fix → In Progress
Changed in juju:
status: In Progress → Fix Committed
milestone: none → 2.8.1
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.