Skip to content

Commit

Permalink
Fix schema
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Oct 5, 2023
1 parent 83aa77a commit 9a36d17
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 11 deletions.
27 changes: 27 additions & 0 deletions .idea/jsonSchemas.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 10 additions & 11 deletions generator/config/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"https"
]
},
"returnType": {
"type": {
"type": "array",
"items": {
"type": "string"
Expand All @@ -50,8 +50,8 @@
"$comment": "The description of the argument from MongoDB's documentation.",
"type": "string"
},
"parameters": {
"$comment": "An optional list of parameters for the operator.",
"arguments": {
"$comment": "An optional list of arguments for the operator.",
"type": "array",
"items": {
"$ref": "#/definitions/Argument"
Expand All @@ -64,8 +64,8 @@
"encode",
"link",
"name",
"parameters",
"returnType"
"arguments",
"type"
],
"title": "Operator"
},
Expand All @@ -77,7 +77,7 @@
"type": "string",
"pattern": "^[a-z][a-zA-Z0-9]+$"
},
"returnType": {
"type": {
"type": "array",
"items": {
"type": "string"
Expand All @@ -88,19 +88,19 @@
"type": "string"
},
"optional": {
"$comment": "Whether the parameter is optional or not.",
"$comment": "Whether the argument is optional or not.",
"type": "boolean"
},
"valueMin": {
"$comment": "The minimum value for a numeric parameter.",
"$comment": "The minimum value for a numeric argument.",
"type": "number"
},
"valueMax": {
"$comment": "The minimum value for a numeric parameter.",
"$comment": "The minimum value for a numeric argument.",
"type": "number"
},
"variadic": {
"$comment": "Whether the parameter is variadic or not.",
"$comment": "Whether the argument is variadic or not.",
"type": "string",
"enum": [
"array",
Expand All @@ -114,7 +114,6 @@
}
},
"required": [
"description",
"name",
"type"
],
Expand Down

0 comments on commit 9a36d17

Please sign in to comment.