Skip to content

Commit

Permalink
fix: Validate ipaddress against ipv4 or ipv6 format
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Nov 4, 2024
1 parent 68d601f commit 6b3fb2b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions inventory.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2052,8 +2052,17 @@
]
},
"ipaddress": {
"type": "string",
"title": "Virtualmachine ip"
"title": "Virtualmachine ip",
"anyOf": [
{
"type": "string",
"format": "ipv4"
},
{
"type": "string",
"format": "ipv6"
}
]
},
"memory": {
"type": "integer",
Expand Down

0 comments on commit 6b3fb2b

Please sign in to comment.