Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Jan 30, 2024
1 parent 707e830 commit e6142b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions hdr_schemata/models/GWDM/1.1/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1133,8 +1133,7 @@
"examples": [
"1.1.0"
],
"maxLength": 4,
"minLength": 3,
"pattern": "^\\d+\\.\\d+\\.\\d+$",
"title": "Dataset Version",
"type": "string"
}
Expand Down
4 changes: 3 additions & 1 deletion hdr_schemata/models/GWDM/v1_1/Required.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@


class Required(BaseRequired):
version: constr(min_length=3, max_length=4) = Field(
version: constr(
pattern=r"^\d+\.\d+\.\d+$",
) = Field(
...,
description="Dataset metadata version",
examples=["1.1.0"],
Expand Down

0 comments on commit e6142b4

Please sign in to comment.