Skip to content
Discussion options

You must be logged in to vote

Yes, the docs need to be clearer on this. Strictly speaking, assuming that the default_range is string, and type inherits it, then this is non-monotonic.

This should be avoided for two reasons:

  1. clarity
  2. the json-schema generator will make unsatisfiable subschemas

Reason 2 may not be super-apparent. It is formally encoded in the compliance tests

if framework == JSON_SCHEMA:
# if use_default_range and not is_valid:
# https://github.com/linkml/linkml/issues/1483
if is_valid and use_default_range:
expected_behavior = ValidationBehavior.FALSE_POSITIVE

Which still lack…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by cmungall
Comment options

ialarmedalien
Oct 1, 2025
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ialarmedalien
Comment options

ialarmedalien Oct 29, 2025
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants