-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add description fields into the JSON schema #118
Comments
Is that really helpful, though? It will be an extra burden to keep the descriptions synchronized. I rather just point to the appendix. |
I much rather see an accompanying human-readable spec to describe the CSL JSON format, in the same spirit as the CSL spec. |
IMO, it makes sense to keep the description of record in the same place as the schema, because it's easier to keep it in sync with the actual schema itself. In other words, if the schema changes, and the description is right there, it's easy for a developer to update the description at the same time. Whereas, if the description lives in a completely different repo, whose sources are hard to find, it adds an extra burden, and the documentation will invariably fall out of date. |
One way to split the difference: keep the content in the schema, and pull On Mon, Aug 25, 2014 at 3:05 PM, Chris Maloney [email protected]
|
@adam3smith, @AJLyon, thoughts? On the Zotero roadmap is a revision of its data model. It's been a long wait so far, but it should be on the horizon once their lead developer finishes up their switch to a new synchronization code base. We already accumulated a lot of tickets (https://github.com/ajlyon/zotero-bits/issues), and some of these things will require changes on the CSL side as well. I think it will be one of the main drivers for a new CSL release. Since that work will focus specifically on fields and their intended use, I foresee quite a few changes to all the field descriptions. I really think it would be simpler to therefore keep the field descriptions in a single place for now (i.e., in the spec). |
Well, if you have a spec, and there's a clear link to it from the readme and/or the json schema (say, the top level description field) that would be fine. But right now it's a bit hard to pull the pieces together. I just noticed you took out my links to the relevant documentation page from the README -- not sure why you did that. |
I do think the description should exists as a nicely formatted, human-readable document so that non-techie folks aren't deterred from reading it (if they're interested), and I think it makes sense to closely tie it to the schema. I have no preferences on the way this is done, whether via link from schema to specs or by embedding it in the schema and auto-extracting like Bruce suggests. The former seems easier to me. Agree with Rintze that the Zotero field revisions and likely new CSL version in their wake would be a good occasion for that. |
FWIW, I included documentation early on in both the CSL schema and the |
Referencing #190 which is related.
Absolutely. The appendix can always just pull the descriptions from the schema. For example, I see there is a 1.0.2 release where a Now I see in the documation source in Putting the field documentation in the JSON schema would:
|
@dhimmel The 1.0.2 documentation is being finalized. It's not yet released. |
It would be nice to have some more documentation of the json schema.
We could start by adding a “description” field (see this example) into the .json schema files themselves, copy-pasting text from the CSL spec appendix IV.
The text was updated successfully, but these errors were encountered: