Open drjova opened 2 weeks ago
We first have to make some changes to inspire-schemas 🫠 pyyaml and urllib3 versions need to be bumped in order to use it in inspire backoffice. They needed changes are included in: https://github.com/inspirehep/inspire-schemas/pull/465
Added validation endpoint in https://github.com/inspirehep/backoffice/pull/115
I think it makes sense to wait for https://github.com/inspirehep/inspirehep/pull/3246, to add the validation call in record editor
We need to add a validation endpoint to the InspireHEP service to validate different types of records, specifically for author workflows. The endpoint should accept a record as a payload and validate it according to the specified type.
TECH NOTES
/api/workflows/authors/validate
.get_validation_errors
method from theinspire_schemas.utils
package (ensure inspire_schemas is installed). You can reference the usage of this method in the record class here.Expected Behavior:
Acceptance Criteria: