|
538 | 538 | } |
539 | 539 | } |
540 | 540 | }, |
| 541 | + "php-docs": { |
| 542 | + "type": "object", |
| 543 | + "properties": { |
| 544 | + "include_private_methods": { |
| 545 | + "type": "boolean", |
| 546 | + "description": "Whether to include private methods in documentation", |
| 547 | + "default": false |
| 548 | + }, |
| 549 | + "include_protected_methods": { |
| 550 | + "type": "boolean", |
| 551 | + "description": "Whether to include protected methods in documentation", |
| 552 | + "default": true |
| 553 | + }, |
| 554 | + "include_private_properties": { |
| 555 | + "type": "boolean", |
| 556 | + "description": "Whether to include private properties in documentation", |
| 557 | + "default": false |
| 558 | + }, |
| 559 | + "include_protected_properties": { |
| 560 | + "type": "boolean", |
| 561 | + "description": "Whether to include protected properties in documentation", |
| 562 | + "default": true |
| 563 | + }, |
| 564 | + "include_implementations": { |
| 565 | + "type": "boolean", |
| 566 | + "description": "Whether to include method implementations in code blocks", |
| 567 | + "default": true |
| 568 | + }, |
| 569 | + "include_property_defaults": { |
| 570 | + "type": "boolean", |
| 571 | + "description": "Whether to include property default values", |
| 572 | + "default": true |
| 573 | + }, |
| 574 | + "include_constants": { |
| 575 | + "type": "boolean", |
| 576 | + "description": "Whether to include class constants", |
| 577 | + "default": true |
| 578 | + }, |
| 579 | + "code_block_format": { |
| 580 | + "type": "string", |
| 581 | + "description": "Language identifier for code blocks (e.g., 'php')", |
| 582 | + "default": "php" |
| 583 | + }, |
| 584 | + "class_heading_level": { |
| 585 | + "type": "integer", |
| 586 | + "description": "Heading level for class names (1-6)", |
| 587 | + "minimum": 1, |
| 588 | + "maximum": 6, |
| 589 | + "default": 1 |
| 590 | + }, |
| 591 | + "extract_routes": { |
| 592 | + "type": "boolean", |
| 593 | + "description": "Whether to extract route information from annotations/attributes", |
| 594 | + "default": true |
| 595 | + }, |
| 596 | + "keep_doc_comments": { |
| 597 | + "type": "boolean", |
| 598 | + "description": "Whether to keep doc comments in the output", |
| 599 | + "default": true |
| 600 | + } |
| 601 | + } |
| 602 | + }, |
| 603 | + "sanitizer": { |
| 604 | + "type": "object", |
| 605 | + "properties": { |
| 606 | + "rules": { |
| 607 | + "type": "array", |
| 608 | + "description": "Array of sanitization rules to apply", |
| 609 | + "items": { |
| 610 | + "type": "object", |
| 611 | + "oneOf": [ |
| 612 | + { |
| 613 | + "type": "object", |
| 614 | + "properties": { |
| 615 | + "type": { |
| 616 | + "type": "string", |
| 617 | + "enum": [ |
| 618 | + "keyword" |
| 619 | + ], |
| 620 | + "description": "Keyword removal rule" |
| 621 | + }, |
| 622 | + "name": { |
| 623 | + "type": "string", |
| 624 | + "description": "Optional unique rule name" |
| 625 | + }, |
| 626 | + "keywords": { |
| 627 | + "type": "array", |
| 628 | + "items": { |
| 629 | + "type": "string" |
| 630 | + }, |
| 631 | + "description": "Array of keywords to search for and remove" |
| 632 | + }, |
| 633 | + "replacement": { |
| 634 | + "type": "string", |
| 635 | + "description": "Text to replace the found keywords with" |
| 636 | + }, |
| 637 | + "caseSensitive": { |
| 638 | + "type": "boolean", |
| 639 | + "description": "Whether matching should be case-sensitive" |
| 640 | + }, |
| 641 | + "removeLines": { |
| 642 | + "type": "boolean", |
| 643 | + "description": "Whether to remove entire lines containing the keyword" |
| 644 | + } |
| 645 | + }, |
| 646 | + "required": [ |
| 647 | + "type", |
| 648 | + "keywords" |
| 649 | + ] |
| 650 | + }, |
| 651 | + { |
| 652 | + "type": "object", |
| 653 | + "properties": { |
| 654 | + "type": { |
| 655 | + "type": "string", |
| 656 | + "enum": [ |
| 657 | + "regex" |
| 658 | + ], |
| 659 | + "description": "Regular expression replacement rule" |
| 660 | + }, |
| 661 | + "name": { |
| 662 | + "type": "string", |
| 663 | + "description": "Optional unique rule name" |
| 664 | + }, |
| 665 | + "patterns": { |
| 666 | + "type": "object", |
| 667 | + "additionalProperties": { |
| 668 | + "type": "string" |
| 669 | + }, |
| 670 | + "description": "Object mapping regex patterns to their replacements" |
| 671 | + }, |
| 672 | + "usePatterns": { |
| 673 | + "type": "array", |
| 674 | + "items": { |
| 675 | + "type": "string", |
| 676 | + "enum": [ |
| 677 | + "credit-card", |
| 678 | + "email", |
| 679 | + "api-key", |
| 680 | + "ip-address", |
| 681 | + "jwt", |
| 682 | + "phone-number", |
| 683 | + "password-field", |
| 684 | + "url", |
| 685 | + "social-security", |
| 686 | + "aws-key", |
| 687 | + "private-key", |
| 688 | + "database-conn" |
| 689 | + ] |
| 690 | + }, |
| 691 | + "description": "Predefined pattern aliases to use" |
| 692 | + } |
| 693 | + }, |
| 694 | + "required": [ |
| 695 | + "type" |
| 696 | + ] |
| 697 | + }, |
| 698 | + { |
| 699 | + "type": "object", |
| 700 | + "properties": { |
| 701 | + "type": { |
| 702 | + "type": "string", |
| 703 | + "enum": [ |
| 704 | + "comment" |
| 705 | + ], |
| 706 | + "description": "Comment insertion rule" |
| 707 | + }, |
| 708 | + "name": { |
| 709 | + "type": "string", |
| 710 | + "description": "Optional unique rule name" |
| 711 | + }, |
| 712 | + "fileHeaderComment": { |
| 713 | + "type": "string", |
| 714 | + "description": "Comment to insert at the top of file" |
| 715 | + }, |
| 716 | + "classComment": { |
| 717 | + "type": "string", |
| 718 | + "description": "Comment to insert before class definitions" |
| 719 | + }, |
| 720 | + "methodComment": { |
| 721 | + "type": "string", |
| 722 | + "description": "Comment to insert before method definitions" |
| 723 | + }, |
| 724 | + "frequency": { |
| 725 | + "type": "integer", |
| 726 | + "minimum": 0, |
| 727 | + "description": "How often to insert random comments (0 = disabled, 1 = every line, 5 = every 5th line)" |
| 728 | + }, |
| 729 | + "randomComments": { |
| 730 | + "type": "array", |
| 731 | + "items": { |
| 732 | + "type": "string" |
| 733 | + }, |
| 734 | + "description": "Array of random comments to insert" |
| 735 | + } |
| 736 | + }, |
| 737 | + "required": [ |
| 738 | + "type" |
| 739 | + ] |
| 740 | + } |
| 741 | + ], |
| 742 | + "required": [ |
| 743 | + "type" |
| 744 | + ] |
| 745 | + } |
| 746 | + } |
| 747 | + } |
| 748 | + }, |
541 | 749 | "modifiers": { |
542 | 750 | "type": "array", |
543 | 751 | "description": "List of content modifiers to apply", |
|
551 | 759 | "type": "string", |
552 | 760 | "description": "Modifier identifier", |
553 | 761 | "enum": [ |
554 | | - "php-content-filter" |
| 762 | + "php-signature", |
| 763 | + "php-docs" |
555 | 764 | ] |
556 | 765 | } |
557 | 766 | }, |
|
569 | 778 | "type": "string", |
570 | 779 | "description": "Modifier identifier", |
571 | 780 | "enum": [ |
572 | | - "php-content-filter" |
| 781 | + "php-content-filter", |
| 782 | + "php-docs", |
| 783 | + "sanitizer" |
573 | 784 | ] |
574 | 785 | }, |
575 | 786 | "options": { |
|
586 | 797 | "then": { |
587 | 798 | "$ref": "#/definitions/php-content-filter" |
588 | 799 | } |
| 800 | + }, |
| 801 | + { |
| 802 | + "if": { |
| 803 | + "properties": { |
| 804 | + "name": { |
| 805 | + "const": "php-docs" |
| 806 | + } |
| 807 | + } |
| 808 | + }, |
| 809 | + "then": { |
| 810 | + "$ref": "#/definitions/php-docs" |
| 811 | + } |
| 812 | + }, |
| 813 | + { |
| 814 | + "if": { |
| 815 | + "properties": { |
| 816 | + "name": { |
| 817 | + "const": "sanitizer" |
| 818 | + } |
| 819 | + } |
| 820 | + }, |
| 821 | + "then": { |
| 822 | + "$ref": "#/definitions/sanitizer" |
| 823 | + } |
589 | 824 | } |
590 | 825 | ] |
591 | 826 | } |
|
0 commit comments