Skip to content

Commit

Permalink
Merge pull request #36 from common-workflow-language/explicit-optional
Browse files Browse the repository at this point in the history
make explicit optional and required fields
  • Loading branch information
mr-c authored Jul 2, 2016
2 parents c509a07 + a58b955 commit aa83430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schema_salad/makedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ def extendsfrom(item, ex):
rfrg = schema.avro_name(i["name"])
tr = "<td><code>%s</code></td><td>%s</td><td>%s</td>"\
"<td>%s</td>" % (
rfrg, self.typefmt(tp, self.redirects), opt,
rfrg, self.typefmt(tp, self.redirects),
"Optional" if opt else "Required",
mistune.markdown(desc))
if opt:
required.append(tr)
Expand Down

0 comments on commit aa83430

Please sign in to comment.