schema.json 1.5 KB

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