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

rfc14: allow attributes to have any value type #173

Merged
merged 5 commits into from
Mar 19, 2019

Conversation

garlick
Copy link
Member

@garlick garlick commented Mar 19, 2019

As discussed in #172, this PR

  • Specifically calls out that system and user attributes can have any value type
  • Replaces JCR specification with json-schema from flux-core, which now allows any type

Change the Makefile to generate html using asciidoctor and coderay, which makes a much prettier rendering, with inline source includes expanded and highlighted.

Sadly: github rendering of includes doesn't even produce a clickable link anymore. We really need to consider those other document publishing options, time permitting.

garlick added 3 commits March 18, 2019 15:44
Problem: attributes are required to be strings in the JCR,
but no comment is made in the text about allowed attribute
types.

Update the text to indicate that values may have any valid
type.  The JCR statement to the contrary will be fixed in
a subsequent commit.
We are now using json-schema to validate jobspec.
Replace the json-content-rules specification with
the (sadly much more verbose and less readable)
json-schema validator from flux-core.

Fixes flux-framework#142
asciidoc (a2x) is abandonware and does not expand
source include directives.

Although github rendering of our adocs also no longer expands
source include directives, asciidoctor does when generating
HTML locally.  Anticipating that we may host static html pages
for our RFCs somewhere in the near future, set up Makefile command
line to use asciidoctor to generate HTML.  Add option to invoke
'coderay' for syntax highlighting, which handles both JSON and YAML.
Problem: The initial footnote referencing JCR (now json-schema)
does not render properly.

I haven't researched this in any great detail, but it seems that
the "footnoteref" reusable footnote style used here is considered
legacy, and a new scheme for reusable footnotes is used by asciidoctor
where footnote:name[text] can be reused with footnote:name[].
However, that didn't seem to render properly on github.

Rather than go down a rat hole on this, I felt the first footnote
was not really needed, and simply eliminated it so there is only
one json-schema footnote reference, thus it doesn't need to be
"resusable".
@garlick
Copy link
Member Author

garlick commented Mar 19, 2019

Sorry for the forced pushes - I noticed the JCR (now json-schema) footnote was rendering improperly on github, tried to use a different footnote style, failed, and finally eliminated the additional reference to the footnote, which seems non-portable. Now at least it's rendering OK.

Problem: The single reference in the RFC 14 is
to JDSL which has no real bearing on the design
of our jobspec, and no citations in the text.

Drop the JDSL reference.
@grondo
Copy link
Contributor

grondo commented Mar 19, 2019

Thank you for taking care of this!

@grondo grondo merged commit ac96823 into flux-framework:master Mar 19, 2019
@garlick
Copy link
Member Author

garlick commented Mar 19, 2019

NP! Thanks.

@garlick garlick deleted the rfc14_anyattr branch March 19, 2019 18:20
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

Successfully merging this pull request may close these issues.

2 participants