tabby/rules/validate-requires-code.yml
Meng Zhang 5c9b62faa3
feat(webserver): support persisted thread in answer engine (#2793)
* init commit

* [autofix.ci] apply automated fixes

* draft create_thread_run_api

* cleanup

* update

* update

* update

* update

* update

* update

* connect streaming

* update

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* add back answer api for ease of migration

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-09 15:29:19 -07:00

30 lines
662 B
YAML

id: validate-requires-code
message: Validations requires code / message being set for frontend error display
severity: error
language: rust
files:
- ./ee/tabby-webserver/src/**
- ./ee/tabby-schema/src/**
rule:
all:
- pattern: "#[validate]"
- not:
all:
- has:
stopBy: end
pattern: code
- has:
stopBy: end
pattern: message
- not:
any:
- has:
stopBy: end
pattern: custom
- has:
stopBy: end
pattern: nested
- has:
stopBy: end
pattern: schema