Skip to content

Commit

Permalink
alpha sort properties/schemata for doc
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed May 12, 2016
1 parent 925445a commit b1f87e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/prmd/templates/schema.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<%=
schemata_template = Prmd::Template::load('schemata.md.erb', options[:template])

schema['properties'].map do |resource, property|
schema['properties'].keys.sort.map do |key|
resource, property = key, schema['properties'][key]
begin
_, schemata = schema.dereference(property)
schemata_template.result({
Expand Down

0 comments on commit b1f87e0

Please sign in to comment.