links 686 B

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