George St Maurice (Progress Software) asked a question.

Generate a JavaScript Vocabulary: Schema ref and id
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "definitions":
  4. {
  5. "address":
  6. {
  7. "type": "object",
  8. "properties": {
  9. "Zip": {
  10. "type": "string"
  11. },
  12. "State": {
  13. "type": "string"
  14. },
  15. "Address2": {
  16. "type": "string"
  17. },
  18. "Address1": {
  19. "type": "string"
  20. },
  21. "City": {
  22. "type": "string"
  23. }
  24. }
  25. }
  26. },
  27. "type": "object",
  28. "properties": {
  29. "BillingAddress": {
  30. "description": "Address to where a Customer's invoice must go",
  31. "$ref": "#/definitions/address"
  32. },
  33. "CompanyName": {
  34. "type": "string"
  35. },
  36. "Phone": {
  37. "type": "string"
  38. },
  39. "ShippingAddress": {
  40. "description": "Address to where a Customer's product must go",
  41. "$ref": "#/definitions/address"
  42. },
  43. "Notes": {
  44. "type": "string"
  45. },
  46. "Contact": {
  47. "type": "string"
  48. }
  49. }
  50. }