Skip to content

Commit

Permalink
Exclude abstract schema from swagger template
Browse files Browse the repository at this point in the history
  • Loading branch information
nati committed Apr 4, 2016
1 parent 9455473 commit 312658d
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 447 deletions.
2 changes: 1 addition & 1 deletion etc/templates/swagger.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"produces": [
"application/json"
],
"paths": { {% for schema in schemas %}{% if schema.Metadata.type != "metaschema" %}
"paths": { {% for schema in schemas %}{% if schema.Metadata.type != "metaschema" && schema.Type != "abstract" %}
"{{ schema.GetPluralURL() }}": {
"get": {
"description" : "Get list of {{ schema.ID}} resources",
Expand Down
Loading

0 comments on commit 312658d

Please sign in to comment.