Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #758 - wrong fixed length bug on random function #759

Merged
merged 1 commit into from
Aug 13, 2023
Merged

Conversation

samchon
Copy link
Owner

@samchon samchon commented Aug 13, 2023

interface Fixed {
    /**
     * @minLength 32
     * @maxLength 32
     */
    string: string;

    /**
     * @minimum 9
     * @maximum 9
     */
    number: number;

    /**
     * @minItems 5
     * @maxItems 5
     * @minimum 5
     * @maximum 5
     */
    array: number[];
}
typia.random<Fixed>()

When fixed length type comes like above, typia.random<T>() function could not catch the exact fixed value.

@samchon samchon added the bug Something isn't working label Aug 13, 2023
@samchon samchon self-assigned this Aug 13, 2023
@samchon samchon merged commit 5489d2e into master Aug 13, 2023
1 of 2 checks passed
@samchon samchon deleted the features/range branch August 13, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant