@cloudflare/json-hyper-schema

0.1.1 • Public • Published

JSON Hyper-Schema

This package is the beginning of an implemenation of JSON Hyper-Schema. It currently only provides utilities to look up a link by rel, method, and/or title, and for resolving URI Templates from instance data.

URI Template resolution

Resolving URI Templates in JSON Hyper-Schema involves some additional steps beyond what is covered in the URI Template RFC.

Currently, with draft-04 hyper-schemas, URI Templates can use dot-separated names to index into the instance object. This is not part of draft-04, and the function does not implement draft-04's preprocessing options.

In the future, URI Template resolution will support the full draft-07 resolution process, including user input.

Readme

Keywords

none

Package Sidebar

Install

npm i @cloudflare/json-hyper-schema

Weekly Downloads

1,348

Version

0.1.1

License

BSD-3-Clause

Unpacked Size

7.65 kB

Total Files

5

Last publish

Collaborators

  • lbarthonet
  • cf-media-manager
  • jacobbednarz
  • celso
  • cf-radar
  • dash_service_account
  • g4brym
  • snigdha34
  • wrangler-publisher
  • marksteyn
  • chiminator
  • sgoodhew_cf
  • terinjokes
  • third774
  • jsteinberger
  • jasnell
  • asapzacy
  • pcostanzo
  • gregbrimble
  • geelen
  • rexscaria
  • dcruz_cf
  • xuranwang
  • jculvey
  • sejoker
  • vasturiano
  • cf-ci-write
  • segments-write
  • thibmeu
  • xortive
  • gurjinder
  • cf-ci2
  • lvalenta
  • worenga