hyper-schema 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "$schema" : "http://json-schema.org/draft-04/hyper-schema#",
  3. "extends" : {"$ref" : "http://json-schema.org/draft-04/schema#"},
  4. "id" : "http://json-schema.org/draft-04/hyper-schema#",
  5. "properties" : {
  6. "links" : {
  7. "type" : "array",
  8. "items" : {"$ref" : "http://json-schema.org/draft-04/links#"}
  9. },
  10. "fragmentResolution" : {
  11. "type" : "string",
  12. "default" : "json-pointer"
  13. },
  14. "root" : {
  15. "type" : "boolean",
  16. "default" : false
  17. },
  18. "readonly" : {
  19. "type" : "boolean",
  20. "default" : false
  21. },
  22. "contentEncoding" : {
  23. "type" : "string"
  24. },
  25. "pathStart" : {
  26. "type" : "string",
  27. "format" : "uri"
  28. },
  29. "mediaType" : {
  30. "type" : "string",
  31. "format" : "media-type"
  32. }
  33. },
  34. "links" : [
  35. {
  36. "href" : "{id}",
  37. "rel" : "self"
  38. },
  39. {
  40. "href" : "{$ref}",
  41. "rel" : "full"
  42. },
  43. {
  44. "href" : "{$schema}",
  45. "rel" : "describedby"
  46. }
  47. ],
  48. "fragmentResolution" : "json-pointer"
  49. }