schema.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema",
  3. "$id": "SchematicsAngularService",
  4. "title": "Angular Service Options Schema",
  5. "type": "object",
  6. "additionalProperties": false,
  7. "description": "Creates a new, generic service definition in the given project.",
  8. "properties": {
  9. "name": {
  10. "type": "string",
  11. "description": "The name of the service.",
  12. "$default": {
  13. "$source": "argv",
  14. "index": 0
  15. },
  16. "x-prompt": "What name would you like to use for the service?"
  17. },
  18. "path": {
  19. "type": "string",
  20. "$default": {
  21. "$source": "workingDirectory"
  22. },
  23. "description": "The path at which to create the service, relative to the workspace root.",
  24. "visible": false
  25. },
  26. "project": {
  27. "type": "string",
  28. "description": "The name of the project.",
  29. "$default": {
  30. "$source": "projectName"
  31. }
  32. },
  33. "flat": {
  34. "type": "boolean",
  35. "default": true,
  36. "description": "When true (the default), creates files at the top level of the project."
  37. },
  38. "skipTests": {
  39. "type": "boolean",
  40. "description": "Do not create \"spec.ts\" test files for the new service.",
  41. "default": false
  42. }
  43. },
  44. "required": ["name", "project"]
  45. }