-
-
Notifications
You must be signed in to change notification settings - Fork 349
Commit 3e55305
Generative use case guidance
This is going to be a powerful technique for generative use
cases, which have been observed either requiring references
(as opposed to subschemas) in certain places, or implementing
various sorts of inferencing around references on their own
or in conjunction with other keywords.
For example, one OpenAPI documentation tool assumes that
in an "allOf" of several references, the first is a base
class of some sort. While this is not correct behavior
by either JSON Schema or OpenAPI, it demonstrates a feature
built by making implicit assumptions about certain references.
This section provides a recommendation for making such
behavior explicit, and also guides writers of such tools
to the concept of extension vocabularies and annotations.1 parent 27338fe commit 3e55305
1 file changed
+62
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3589 | 3589 |
| |
3590 | 3590 |
| |
3591 | 3591 |
| |
3592 | + | ||
3593 | + | ||
3594 | + | ||
3595 | + | ||
3596 | + | ||
3597 | + | ||
3598 | + | ||
3599 | + | ||
3600 | + | ||
3601 | + | ||
3602 | + | ||
3603 | + | ||
3604 | + | ||
3605 | + | ||
3606 | + | ||
3607 | + | ||
3608 | + | ||
3609 | + | ||
3610 | + | ||
3611 | + | ||
3612 | + | ||
3613 | + | ||
3614 | + | ||
3615 | + | ||
3616 | + | ||
3617 | + | ||
3618 | + | ||
3619 | + | ||
3620 | + | ||
3621 | + | ||
3622 | + | ||
3623 | + | ||
3624 | + | ||
3625 | + | ||
3626 | + | ||
3627 | + | ||
3628 | + | ||
3629 | + | ||
3630 | + | ||
3631 | + | ||
3632 | + | ||
3633 | + | ||
3634 | + | ||
3635 | + | ||
3636 | + | ||
3637 | + | ||
3638 | + | ||
3639 | + | ||
3640 | + | ||
3641 | + | ||
3642 | + | ||
3643 | + | ||
3644 | + | ||
3645 | + | ||
3646 | + | ||
3647 | + | ||
3648 | + | ||
3649 | + | ||
3650 | + | ||
3651 | + | ||
3652 | + | ||
3653 | + | ||
3592 | 3654 |
| |
3593 | 3655 |
| |
3594 | 3656 |
| |
|
0 commit comments