X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=6a483f3d738cc49f2563799186340738ea76d63d;hb=8ec2cc6f7b54e6fd0f670643b42c0079c9d3eedf;hp=f8b91d86d4f59e9becf1365f5ec9ba8ab667c4cc;hpb=220fd4e4ddda414cf807c36f3116452ae15632ed;p=osm%2FNBI.git diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index f8b91d8..6a483f3 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -43,7 +43,7 @@ time_schema = {"type": "string", "pattern": "^[0-9]{4}-[0-1][0-9]-[0-3][0-9]T[0- pci_schema = {"type": "string", "pattern": "^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\\.[0-9a-fA-F]$"} # allows [] for wildcards. For that reason huge length limit is set pci_extended_schema = {"type": "string", "pattern": "^[0-9a-fA-F.:-\\[\\]]{12,40}$"} -http_schema = {"type": "string", "pattern": "^https?://[^'\"=]+$"} +http_schema = {"type": "string", "pattern": "^(https?|http)://[^'\"=]+$"} bandwidth_schema = {"type": "string", "pattern": "^[0-9]+ *([MG]bps)?$"} memory_schema = {"type": "string", "pattern": "^[0-9]+ *([MG]i?[Bb])?$"} integer0_schema = {"type": "integer", "minimum": 0}