Conditions on Basic Types (Strings)
@plamen-neykov is already working on this.
Since Feb 9, 2026.
Assessment
This issue has not been assessed yet.
Description
Problem Description:
Rune allows attaching conditions directly to basic type aliases (e.g., typeAlias BusinessCenter: string condition IsValid). The Python generator does not yet support wrapping simple types to trigger these validators upon assignment.
Steps to Reproduce:
Example Rune code: (Type alias with condition)
typeAlias Currency:
string
condition C:
item count = 3
- Define a
typeAliason a basic type (string, number, etc.) with an attachedcondition. - Generate Python code and check the Pydantic field definition for the alias.
Expected Result:
The assignment should be intercepted and validated according to the condition.
Actual Result:
No validation occurs as the type is treated as a plain Python str.
- Dominant language
- Java
- Stars
- 1
- Forks
- 6
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 13
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from finos/rune-python-generator
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 75/100
finos/rune-python-generator#283 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 52/100
finos/rune-python-generator#239 ·
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 58/100
finos/rune-python-generator#151 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
finos/rune-python-generator#150 · 10 comments · 1 reaction ·
-
enhancement
finos/rune-python-generator#146 · 2 assignees ·
All issues in finos/rune-python-generator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100