Skip to content

hyper-schema: Is generating API documentation a goal? #89

Closed
@handrews

Description

@handrews

I've come to the realization that most of the apparent conflicts in issue #48 are because the problems that I'm raising are motivated by documentation generation requirements, while other people's responses have been driven by API execution requirements.

These are very different sets of requirements, so unsurprisingly, the result has been a sprawling mess of confusion despite a great deal of patience exhibited by everyone involved. (Thank you all!)

The introduction to the JSON Schema Core document (on master) states:

JSON Schema is intended to define validation, documentation, hyperlink navigation, and interaction control of JSON data.

The phrase JSON data is key. Does this just mean each individual schema is intended to define documentation itself? Or do we want to facilitate document an API as a larger entity? In either case, what sort of documentation do we want to enable and encourage?

The goal here is NOT to turn JSON Hyper-Schema into API Hyper-Schema. The primary unit of focus should remain individual schemas and instances. But that leaves quite a bit of leeway.

I have a lot more details on this topic, but perhaps it is best to start with the fundamental question.

Note that documenting a fully RESTful API and documenting other HTTP APIs in the typical manner produce different requirements. Depending on what we decide about HTTP-abusing APIs in issue #88 , we may need to consider both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions