missing alias in OutputOrigDatablockDto

Open
#2,536 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api, backend

Research direction

Start by locating OutputOrigDatablockDto and read how its fields are mapped to aliases. Reproduce the reported validation error with the shown input, then verify that the version field is accepted through its alias without changing the existing size behavior.

Written by the indexing model from the issue text.

Description

bug

Hello,

please can we have an alias for "version" as well in OutputOrigDatablockDto to avoid recieving this validation error:

2026-02-16 14:03:13,414 - app.main - ERROR - Error is 1 validation error for OutputOrigDatablockDto
version
Field required [type=missing, input_value={'_id': 'f9cd6e3c-ef22-4a...low,CO=low', '__v': 0}]}, input_type=dict]

It seems "version" the only field that doesn't have an alias defined...? (apart from "size")

Thanks.

Dominant language
TypeScript
Stars
27
Forks
37
Avg merge
17h 32m
Merged PRs (30d)
38

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SciCatProject/backend

All issues in SciCatProject/backend

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.