Commit bf331369 authored by Kim, Hyeonseo's avatar Kim, Hyeonseo
Browse files

type: add template field and make href optional

parent ea432bb3
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ export interface Link {
  /**
   * A URI pointing to the target resource.
   */
  href: string;
  href?: string;

  /**
   * Human-readable titles describing the link relation.  If the language is
@@ -56,4 +56,11 @@ export interface Link {
   * Conveys additional information about the link relation.
   */
  properties?: Record<string, string>;

  /**
   * A URI template (RFC 6570) that can be used to construct URIs by
   * substituting variables. Used primarily for subscription endpoints
   * where parameters like account URIs need to be dynamically inserted.
   */
  template?: string;
}