Top-level ref
of record
definitions in lexicons
#3512
Unanswered
yamarten
asked this question in
Clarifications and "Why?"
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to the Lexicon specification, only
object
types can be used in therecord
field ofrecord
type. This is in contrast to the ability to useunion
andref
forschema
field of API. Why is it like this?Simple records, like
like
andrepost
, often have exactly the samerecord
, so it is useful to commonize the definition without increasing the nesting. Also, even if the collection is different for each service, you may want to have a compatible record.Are there any expected problems if the record allows a reference?
Beta Was this translation helpful? Give feedback.
All reactions