Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/editor/js/schema-fallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const SchemaFallback = SchemaFallbackParser.createSchema(
"description": "SchemaVersion is a version string in the format X.Y.Z",
"kind": "primitive",
"type": "string",
"pattern": "^[1-9]+\\.[0-9]+\\.[0-9]+$"
"pattern": "^(0|[1-9][0-9]*)\\.[0-9]+\\.[0-9]+$"
},
"#Assessment": {
"name": "#Assessment",
Expand Down
2 changes: 1 addition & 1 deletion docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ Email is a valid email address
SchemaVersion is a version string in the format X.Y.Z

- **Type**: `string`
- **Value**: `^[1-9]+\\.[0-9]+\\.[0-9]+$`
- **Value**: `^(0|[1-9][0-9]*)\\.[0-9]+\\.[0-9]+$`

---

Expand Down
2 changes: 1 addition & 1 deletion spec/schema.cue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
#Date: time.Format("2006-01-02")

// SchemaVersion is a version string in the format X.Y.Z
#SchemaVersion: =~"^[1-9]+\\.[0-9]+\\.[0-9]+$"
#SchemaVersion: =~"^(0|[1-9][0-9]*)\\.[0-9]+\\.[0-9]+$"

// Assessment represents the results of a security assessment, including comments, evidence, and date.
#Assessment: {
Expand Down
2 changes: 1 addition & 1 deletion spec/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ Email is a valid email address
SchemaVersion is a version string in the format X.Y.Z

- **Type**: `string`
- **Value**: `^[1-9]+\\.[0-9]+\\.[0-9]+$`
- **Value**: `^(0|[1-9][0-9]*)\\.[0-9]+\\.[0-9]+$`

---

Expand Down