Skip to content

Commit

Permalink
update module schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jryannel committed Feb 14, 2024
1 parent aba5edb commit 6cd5eb2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions pkg/spec/schema/apigear.module.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"type": "object"
},
"name": {
"description": "The name of the enum, starting with a letter, followed by letters, numbers and underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]+$",
"description": "A name starts with a letter, followed by zero-or-more letters, numbers or underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]*$",
"type": "string"
}
},
Expand All @@ -45,8 +45,8 @@
"type": "object"
},
"name": {
"description": "The name of the enum member, starting with a letter, followed by letters, numbers and underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]+$",
"description": "A name starts with a letter, followed by zero-or-more letters, numbers or underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]*$",
"type": "string"
},
"value": {
Expand All @@ -73,8 +73,8 @@
"type": "object"
},
"name": {
"description": "The name of the interface, starting with an letter, followed by letters, numbers and underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]+$",
"description": "A name starts with a letter, followed by zero-or-more letters, numbers or underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]*$",
"type": "string"
},
"operations": {
Expand Down Expand Up @@ -121,8 +121,8 @@
"type": "object"
},
"name": {
"description": "A name, must be an identifier, starting with a letter, followed by letters, numbers and underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]+$",
"description": "A name starts with a letter, followed by zero-or-more letters, numbers or underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]*$",
"type": "string"
},
"readonly": {
Expand Down Expand Up @@ -153,8 +153,8 @@
"type": "object"
},
"name": {
"description": "A name, starting with a letter, followed by letters, numbers and underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]+$",
"description": "A name starts with a letter, followed by zero-or-more letters, numbers or underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]*$",
"type": "string"
},
"params": {
Expand Down Expand Up @@ -190,8 +190,8 @@
"type": "object"
},
"name": {
"description": "The name of the struct, starting with an letter, followed by letters, numbers and underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]+$",
"description": "A name starts with a letter, followed by zero-or-more letters, numbers or underscores.",
"pattern": "^[a-zA-Z][0-9A-Za-z_]*$",
"type": "string"
}
},
Expand Down Expand Up @@ -252,8 +252,8 @@
"type": "object"
},
"name": {
"description": "module name, should be a valid module identifier, starting with a letter, followed by letters, numbers and dot (e.g. 0.1 or 0.1.0).",
"pattern": "^[a-zA-Z][0-9A-Za-z_]+([.][0-9A-Za-z_]+)*$",
"description": "module name, starts with a letter, followed by letters, numbers, underscores or dots (e.g. a.b.c)",
"pattern": "^[a-zA-Z][0-9A-Za-z_.]*$",
"type": "string"
},
"schema": {
Expand Down
28 changes: 14 additions & 14 deletions pkg/spec/schema/apigear.module.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ properties:
default: "apigear.module/1.0"
name:
type: string
description: module name, should be a valid module identifier, starting with a letter, followed by letters, numbers and dot (e.g. 0.1 or 0.1.0).
pattern: "^[a-zA-Z][0-9A-Za-z_]+([.][0-9A-Za-z_]+)*$"
description: module name, starts with a letter, followed by letters, numbers, underscores or dots (e.g. a.b.c)
pattern: "^[a-zA-Z][0-9A-Za-z_.]*$"
version:
type: string
description: module version, should be a major and minor and an optional patch version, separated by a dot.
Expand Down Expand Up @@ -77,8 +77,8 @@ definitions:
properties:
name:
type: string
description: "A name, must be an identifier, starting with a letter, followed by letters, numbers and underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]+$"
description: "A name starts with a letter, followed by zero-or-more letters, numbers or underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]*$"
description:
type: string
description: "A description of the type."
Expand Down Expand Up @@ -121,8 +121,8 @@ definitions:
properties:
name:
type: string
description: "The name of the interface, starting with an letter, followed by letters, numbers and underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]+$"
description: "A name starts with a letter, followed by zero-or-more letters, numbers or underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]*$"
description:
type: string
description: "A description of the interface."
Expand Down Expand Up @@ -152,8 +152,8 @@ definitions:
properties:
name:
type: string
description: "The name of the struct, starting with an letter, followed by letters, numbers and underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]+$"
description: "A name starts with a letter, followed by zero-or-more letters, numbers or underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]*$"
description:
type: string
description: "A description of the struct."
Expand All @@ -173,8 +173,8 @@ definitions:
properties:
name:
type: string
description: "The name of the enum, starting with a letter, followed by letters, numbers and underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]+$"
description: "A name starts with a letter, followed by zero-or-more letters, numbers or underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]*$"
description:
type: string
description: "A description of the enum."
Expand All @@ -193,8 +193,8 @@ definitions:
properties:
name:
type: string
description: "A name, starting with a letter, followed by letters, numbers and underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]+$"
description: "A name starts with a letter, followed by zero-or-more letters, numbers or underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]*$"
description:
type: string
description: "A description of the operation."
Expand All @@ -216,8 +216,8 @@ definitions:
properties:
name:
type: string
description: "The name of the enum member, starting with a letter, followed by letters, numbers and underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]+$"
description: "A name starts with a letter, followed by zero-or-more letters, numbers or underscores."
pattern: "^[a-zA-Z][0-9A-Za-z_]*$"
description:
type: string
description: "A description of the enum member."
Expand Down

0 comments on commit 6cd5eb2

Please sign in to comment.