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

Arelle incorrectly considers maximum values invalid for integer value types #929

Closed
aaroncameron-wk opened this issue Oct 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@aaroncameron-wk
Copy link
Contributor

What happened?

XmlValidate.validateValue incorrectly considers some integer value types invalid at their maxInclusive value:

(baseXsdType == "byte" and not -128 <= xValue < 127) or
(baseXsdType == "unsignedByte" and not 0 <= xValue < 255) or
(baseXsdType == "short" and not -32768 <= xValue < 32767) or
(baseXsdType == "unsignedShort" and not 0 <= xValue < 65535) or

This is demonstrated by unit tests added on #928.
XML Schema docs for reference: https://www.w3.org/TR/xmlschema-2/#unsignedByte

Documents

No response

If running from the command line, what command did you run?

No response

Interface

CLI (arelleCmdLine), GUI (arelleGUI), Python library (pip install)

Version

2.17.0

Download

From source (git checkout)

Operating System

Other (please specify)

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
Status: Resolved
Development

No branches or pull requests

2 participants