Skip to content

Commit

Permalink
update rules schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jryannel committed Aug 8, 2023
1 parent c6939b9 commit dedb41f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pkg/spec/schema/apigear.rules.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"description": "Feature defines a section in a template which can be enabled.",
"properties": {
"name": {
"description": "Name of the feature. This is used to enable/disable the feature on the command line. All features are enabled by default. Features must be lowercase and only contain letters.",
"pattern": "^[a-z]+$",
"description": "Name of the feature. This is used to enable/disable the feature on the command line. All features are enabled by default. Features must be lowercase and start with a letter, they can contain letters, numbers, hyphens and underscores.",
"pattern": "^[a-z][a-z0-9-_]*$",
"type": "string"
},
"path": {
Expand All @@ -47,8 +47,8 @@
"requires": {
"description": "Requires defines a list of features which must be run before this feature can be used.",
"items": {
"description": "name of the feature which must be run before this feature can be used.",
"pattern": "^[a-z]+$",
"description": "Name of the feature which must be run before this feature can be used.",
"pattern": "^[a-z][a-z0-9-_]*$",
"type": "string"
},
"type": "array"
Expand Down
8 changes: 4 additions & 4 deletions pkg/spec/schema/apigear.rules.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ definitions:
properties:
name:
type: string
description: Name of the feature. This is used to enable/disable the feature on the command line. All features are enabled by default. Features must be lowercase and only contain letters.
pattern: "^[a-z]+$"
description: Name of the feature. This is used to enable/disable the feature on the command line. All features are enabled by default. Features must be lowercase and start with a letter, they can contain letters, numbers, hyphens and underscores.
pattern: "^[a-z][a-z0-9-_]*$"
requires:
type: array
description: Requires defines a list of features which must be run before this feature can be used.
items:
type: string
description: name of the feature which must be run before this feature can be used.
pattern: "^[a-z]+$"
description: Name of the feature which must be run before this feature can be used.
pattern: "^[a-z][a-z0-9-_]*$"
path:
description: Path defines the path where the documents will be written to. It is a template which can be evaluated in the given context.
type: string
Expand Down

0 comments on commit dedb41f

Please sign in to comment.