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

String type options #93

Open
davaya opened this issue Nov 15, 2024 · 0 comments
Open

String type options #93

davaya opened this issue Nov 15, 2024 · 0 comments

Comments

@davaya
Copy link

davaya commented Nov 15, 2024

JADN 1.0 type options include minv and maxv, which are "Minimum(/Maximum) integer value, octet or character count, or element count."

This means that Integer/Number have a minimum/maximum value, but Binary/String have a min/max length specified by the same option. Fixing this so that a string can have both value range and/or length range is necessary both conceptually and for compatibility with XSD, but will require changes to existing schemas similar to changing unlimited-size arrays from [0 to [-1.

Heads up JADN 2.0 will have a new option to replace minv/maxv, with new names minInclusive/maxInclusive, with IDs "(" and ")" that are unused in 1.0, and any schema with a value range on Integer or Number will need to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant