Skip to content

Commit

Permalink
Updated according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Garufi committed May 28, 2018
1 parent b4f10f6 commit 11cf69c
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions schema/sw.blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,18 @@
"type": "object",
"patternProperties": {
"^.*$": {
"type": "string",
"anyOf": [
{
"type": "string",
},
{
"type": "array",
"additionalItems": false,
"items": {
"type": "string"
}
}
]
}
}
},
Expand All @@ -28,7 +39,8 @@
"properties": {
"filename": {
"$id": "/properties/output/properties/filename",
"type": "string"
"type": "string",
"pattern": "^(\\.\\.\/|[a-zA-Z0-9_/\\\\-])*\\.[a-zA-Z0-9]+$"
},
"template": {
"$id": "/properties/output/properties/template",
Expand All @@ -47,10 +59,12 @@
"$id": "/properties/output/properties/template/items/properties/data",
"type": "string"
}
}
},
"required": [ "name", "data" ]
}
}
}
},
"required": [ "properties", "template" ]
}
]
}
Expand Down

0 comments on commit 11cf69c

Please sign in to comment.