Skip to content

Commit

Permalink
Add config schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed May 28, 2024
1 parent 649de01 commit 50ad3b2
Showing 1 changed file with 486 additions and 0 deletions.
Loading

2 comments on commit 50ad3b2

@skrashevich
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff --git a/website/schema.json b/website/schema.json
index d5e1943..029e5fe 100644
--- a/website/schema.json
+++ b/website/schema.json
@@ -8,11 +8,9 @@
       "type": "string",
       "anyOf": [
         {
-          "type": "string",
           "pattern": ":[0-9]{1,5}$"
         },
         {
-          "type": "string",
           "const": ""
         }
       ]
@@ -155,7 +153,7 @@
           ]
         },
         "level": {
-          "description": "Defaul log level",
+          "description": "Default log level",
           "default": "info",
           "$ref": "#/definitions/log_level"
         },
@@ -171,21 +169,13 @@
         "time": {
           "type": "string",
           "default": "UNIXMS",
-          "anyOf": [
-            {
-              "type": "string",
-              "enum": [
-                "",
-                "UNIXMS",
-                "UNIXMICRO",
-                "UNIXNANO",
-                "2006-01-02T15:04:05Z07:00",
-                "2006-01-02T15:04:05.999999999Z07:00"
-              ]
-            },
-            {
-              "type": "string"
-            }
+          "enum": [
+            "",
+            "UNIXMS",
+            "UNIXMICRO",
+            "UNIXNANO",
+            "2006-01-02T15:04:05Z07:00",
+            "2006-01-02T15:04:05.999999999Z07:00"
           ]
         },
         "api": {
@@ -362,16 +352,7 @@
         "listen": {
           "default": ":8555/tcp",
           "type": "string",
-          "anyOf": [
-            {
-              "type": "string",
-              "pattern": ":[0-9]{1,5}(/tcp|/udp)?$"
-            },
-            {
-              "type": "string",
-              "const": ""
-            }
-          ]
+          "pattern": ":[0-9]{1,5}(/tcp|/udp)?$"
         },
         "candidates": {
           "type": "array",
@@ -483,4 +464,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}

@AlexxIT
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webrtc listen support empty value

Please sign in to comment.