bootstrap-vz/bootstrapvz/plugins/admin_user/manifest-schema.yml
Nicolas Braud-Santoni 9de36b9d99
admin_user: Allow relative paths to pubkeys
The paths are relative to the manifest.

Also, the file validation happens during the validation phase.
2016-09-12 17:37:47 +02:00

20 lines
457 B
YAML

---
$schema: http://json-schema.org/draft-04/schema#
title: Admin user plugin manifest
type: object
properties:
plugins:
type: object
properties:
admin_user:
type: object
properties:
username: {type: string}
password: {type: string}
pubkey: {$ref: '#/definitions/path'}
required: [username]
additionalProperties: false
definitions:
path:
pattern: ^[^\0]+$
type: string