@@ -310,7 +310,10 @@ export const TuiRoutes = lazy(() =>
}),
validator("json", zodObject(TuiEvent.ToastShow.properties)),
async (c) => {
- await Bus.publish(TuiEvent.ToastShow, c.req.valid("json") as Schema.Schema.Type<typeof TuiEvent.ToastShow.properties>)
+ await Bus.publish(
+ TuiEvent.ToastShow,
+ c.req.valid("json") as Schema.Schema.Type<typeof TuiEvent.ToastShow.properties>,
+ )
return c.json(true)
},
)
@@ -6804,7 +6804,6 @@
"duration": {
"description": "Duration in milliseconds",
- "default": 5000,
"type": "number"
}
@@ -7638,20 +7637,8 @@
"type": "string"
"event": {
- "anyOf": [
- {
- "type": "string",
- "const": "add"
- },
- "const": "change"
- "const": "unlink"
- }
- ]
+ "type": "string",
+ "enum": ["add", "change", "unlink"]
"required": ["file", "event"]
@@ -8507,7 +8494,6 @@