Subject: [PATCH] See #24014: Add value_type and normalize attributes to preset xsd
---
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/resources/data/tagging-preset.xsd b/resources/data/tagging-preset.xsd
|
a
|
b
|
|
| 596 | 596 | <enumeration value="optional" /> |
| 597 | 597 | </restriction> |
| 598 | 598 | </simpleType> |
| | 599 | |
| | 600 | <simpleType name="value_type"> |
| | 601 | <restriction base="string"> |
| | 602 | <enumeration value="opening_hours"> |
| | 603 | <annotation> |
| | 604 | <documentation> |
| | 605 | Opening hours (standard syntax) |
| | 606 | </documentation> |
| | 607 | </annotation> |
| | 608 | </enumeration> |
| | 609 | <enumeration value="opening_hours_mixed"> |
| | 610 | <annotation> |
| | 611 | <documentation> |
| | 612 | A value with both opening hours and specialized text values |
| | 613 | </documentation> |
| | 614 | </annotation> |
| | 615 | </enumeration> |
| | 616 | <enumeration value="integer"> |
| | 617 | <annotation> |
| | 618 | <documentation> |
| | 619 | An integer value |
| | 620 | </documentation> |
| | 621 | </annotation> |
| | 622 | </enumeration> |
| | 623 | <enumeration value="website"> |
| | 624 | <annotation> |
| | 625 | <documentation> |
| | 626 | A website |
| | 627 | </documentation> |
| | 628 | </annotation> |
| | 629 | </enumeration> |
| | 630 | <enumeration value="phone"> |
| | 631 | <annotation> |
| | 632 | <documentation> |
| | 633 | A phone number |
| | 634 | </documentation> |
| | 635 | </annotation> |
| | 636 | </enumeration> |
| | 637 | <enumeration value="wikipedia"> |
| | 638 | <annotation> |
| | 639 | <documentation> |
| | 640 | A wikipedia page |
| | 641 | </documentation> |
| | 642 | </annotation> |
| | 643 | </enumeration> |
| | 644 | <enumeration value="wikidata"> |
| | 645 | <annotation> |
| | 646 | <documentation> |
| | 647 | A wikidata reference |
| | 648 | </documentation> |
| | 649 | </annotation> |
| | 650 | </enumeration> |
| | 651 | <enumeration value="speed"> |
| | 652 | <annotation> |
| | 653 | <documentation> |
| | 654 | A speed value |
| | 655 | </documentation> |
| | 656 | </annotation> |
| | 657 | </enumeration> |
| | 658 | <enumeration value="multiline"> |
| | 659 | <annotation> |
| | 660 | <documentation> |
| | 661 | A multiline value |
| | 662 | </documentation> |
| | 663 | </annotation> |
| | 664 | </enumeration> |
| | 665 | </restriction> |
| | 666 | </simpleType> |
| 599 | 667 | |
| 600 | 668 | <!-- Types and documentation for attributes --> |
| 601 | 669 | |
| … |
… |
|
| 645 | 713 | <annotation> |
| 646 | 714 | <documentation> |
| 647 | 715 | Translation context for text attribute to separate equals words with different meaning (not required for in-file translations). |
| | 716 | </documentation> |
| | 717 | </annotation> |
| | 718 | </attribute> |
| | 719 | <attribute name="value_type" type="tns:value_type"> |
| | 720 | <annotation> |
| | 721 | <documentation> |
| | 722 | The text is expected to be multiline, and newlines must not be normalized (default is false) |
| | 723 | </documentation> |
| | 724 | </annotation> |
| | 725 | </attribute> |
| | 726 | <attribute name="normalize" type="boolean"> |
| | 727 | <annotation> |
| | 728 | <documentation> |
| | 729 | This performs normalization of the value by stripping extraneous spaces and consolidating whitespace (default is true for JOSM) |
| 648 | 730 | </documentation> |
| 649 | 731 | </annotation> |
| 650 | 732 | </attribute> |