mirror of
https://github.com/ribru17/ts_query_ls.git
synced 2025-12-23 05:36:52 +00:00
fix: allow empty parameter specs in schema (#229)
This commit is contained in:
parent
95e3e5486e
commit
69f4c45a51
2 changed files with 1 additions and 3 deletions
|
|
@ -162,8 +162,7 @@
|
|||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/PredicateParameter"
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -211,7 +211,6 @@ pub struct Predicate {
|
|||
/// A short description of the predicate (in Markdown format).
|
||||
pub description: String,
|
||||
/// The list of valid parameter types.
|
||||
#[cfg_attr(feature = "schema", schemars(length(min = 1)))]
|
||||
pub parameters: Vec<PredicateParameter>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue