links 658 B

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