You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Legal API: need to accept share values more than 16 digits #32999
As a result of #32772, the UI allows entry of "maximum shares" and "par values" up to the limit of a "Number" type (which is the same in JS, JSON and our db). However, the API validation is currently rejecting some valid data.
Steps to reproduce:
create an IA
add a share class
set maxNumberOfShares = 10000000000000000000
set par value = 0.000000000000000000000000000000000001
fill in the rest of the IA and submit it
observe HTTP 400 error (bad response):
In the above example, maxNumberOfShares is a valid Number (and so is parValue). Here are the rules (as per the original requirements in ticket #3837 and presently implemented in the UI):
Maximum number of shares supports up to 20 digits.
Par value supports up to 38 digits.
Both number of shares and par value can have a maximum of 16 significant digits.
For example, the following are valid numbers of shares:
Activity
gunanagar commentedon May 20, 2026
Tested Share value both in UI & API - API alinged with UI
gunanagar commentedon May 20, 2026
API with more than 16 it accepted. - PASS
gunanagar commentedon May 21, 2026
10000000000000000000000000000000000000 (max 38 characters) - Positive and negative - All PASS both API and UI aligned