Skip to content
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

Document entry format #241

Open
6 tasks
tobie opened this issue Feb 29, 2016 · 5 comments
Open
6 tasks

Document entry format #241

tobie opened this issue Feb 29, 2016 · 5 comments

Comments

@tobie
Copy link
Owner

tobie commented Feb 29, 2016

The entry format is documented using JSON schema.

I would be great to generate doc from the schema. Unfortunately, either the tools to do so are terrible or there small issues with Specref's schemas that make it difficult to use.

  • check that Specref's schemas are JSON-schema-compliant.
  • fix them if not.
  • check that the test suites still run properly after fixing the schemas.
  • find a cool doc tool.
  • generate docs and include them either in the readme or on specref.org.
  • document the code generating process or add a script to do so in the scripts folder.
@tobie
Copy link
Owner Author

tobie commented Feb 29, 2016

/cc @tabatkins

@tabatkins
Copy link
Collaborator

I've boiled down your schema into an abbreviated form for my own purposes, in case it helps 👍

<alias>: {
    *aliasOf: <id>,
    *id: <id>
}

<legacyRef>: <string>

<ref>: {
    id: <id>,
    authors: [<string>],
    etAl: <bool>,
    href: <url>,
    *title: <string>,
    date: <date>,
    deliveredBy: [<wg>],
    status: <string>,
    publisher: <string>,
    obsoletes: [<id>],
    obsoletedBy: [<id>],
    versionOf: <id>,
    versions: [<id>],
    edDraft: <url>
}

<date>: /^([1-3]?\d\s)?((?:January|February|March|April|May|June|July|August|September|October|November|December)\s)?\d+$/

<wg>: {*url:<url>, *shortname:<string>}

(This is now stored alongside my SpecRef-parsing function.)

@tobie
Copy link
Owner Author

tobie commented Mar 15, 2016

That's neat! Might try to reuse it. Note it's the output format, not the input one.

@tabatkins
Copy link
Collaborator

Yeah, that's the format I care about, both as a consumer of SpecRef data, and a producer of SpecRef PRs. You only care about the input format for the purpose of consuming the W3C's data, right?

@tobie
Copy link
Owner Author

tobie commented Mar 16, 2016

Well, not really. You need to understand the input format for contributions beyond the simplest of cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants