Replace valid with preview and viewer (#1452)
* docs: โ๏ธ add docs for fields viewer and preview in /valid
* style: ๐ fix format
* feat: ๐ธ add "preview" and "viewer" to /is-valid response
* docs: โ๏ธ update the docs for is-valid
* docs: โ๏ธ update openapi spec
* test: ๐ fix tests
* feat: ๐ธ remove field "valid" from /is-valid response
BREAKING CHANGE: ๐งจ removes valid field from /is-valid response
* feat: ๐ธ remove field "valid" from "/valid" endpoint
BREAKING CHANGE: ๐งจ remove field "valid" from "/valid" endpoin
* Update docs/source/valid.mdx
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
* Update docs/source/valid.mdx
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
* Update docs/source/valid.mdx
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
* Update services/worker/src/worker/job_runners/dataset/is_valid.py
Co-authored-by: Andrea Francis Soria Jimenez <andrea@huggingface.co>
* refactor: ๐ก use CompleteJobResult to simplify the code
---------
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Andrea Francis Soria Jimenez <andrea@huggingface.co>