Can we unify Reference Object and External Resource Object in a single object definition? #17
Locked
andrea-gioia
started this conversation in
Ideas
Replies: 1 comment
-
It's probably better to add the property Adding Keeping External Resource Object allow to differentiate between reference that point to objects that are part of the specification and so MUST be resolved and validated together with the rest of the descriptor document and reference to objects that are external to the specification and don't need to be resolved and validated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reference Object and External Resource Object have almost identical definitions.
In Reference Object there is the
$ref
field while in External Resource Object there is the$href
. Both fields anyway point to the desired object/resource using a URI. The fieldmediaType
is not present in Reference Object because it is implicitly assumed to be equal to the media type used for the descriptor document (i.e. JSON or YAML).So why don't just have one Reference Object with the following fields and use it also to point to external resources?
string
string
string:uri
Beta Was this translation helpful? Give feedback.
All reactions