links 690 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. "$schema" : "http://json-schema.org/draft-04/hyper-schema#",
  3. "id" : "http://json-schema.org/draft-04/links#",
  4. "type" : "object",
  5. "properties" : {
  6. "rel" : {
  7. "type" : "string"
  8. },
  9. "href" : {
  10. "type" : "string"
  11. },
  12. "template" : {
  13. "type" : "string"
  14. },
  15. "targetSchema" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"},
  16. "method" : {
  17. "type" : "string",
  18. "default" : "GET"
  19. },
  20. "enctype" : {
  21. "type" : "string"
  22. },
  23. "properties" : {
  24. "type" : "object",
  25. "additionalProperties" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"}
  26. }
  27. },
  28. "required" : ["rel", "href"],
  29. "dependencies" : {
  30. "enctype" : "method"
  31. }
  32. }