1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-13 12:55:10 -05:00
Commit Graph

6250 Commits

Author SHA1 Message Date
Jonas Schäfer
d79c8fafb6
Merge pull request #1259 from Zash/xep2md-tool
Fix metadata conversion in markdown scripts
2022-12-27 19:44:24 +01:00
Jonas Schäfer
7e9fa19c8a
Merge pull request #1256 from guusdk/xep-validation-color-output
Add color to output of XEP validation script
2022-12-27 19:40:45 +01:00
Kim Alvefur
5a55805a67 tools/2xep: Fix encoding of simple list metadata
An extra wrapper element was added

```
<lastcall>
<lastcall>2017-11-15</lastcall>
</lastcall>
```

Correct is one element with text for each item

```
<lastcall>2017-11-15</lastcall>
```
2022-12-27 17:30:51 +01:00
Kim Alvefur
29809ef1b5 tool/xep2md: Record all list metadata items
E.g. lastcall can exist more than once according to the schema, but only
one item was kept.

Before:

```yaml
lastcall: 2017-11-15
```

After:

```yaml
lastcall:
- 2021-03-30
- 2017-11-15
```
2022-12-27 17:30:30 +01:00
Maxime “pep” Buquet
ac1eda3476
extract-metadata.py: Add tag info to xeplist.xml
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 15:23:41 +01:00
Maxime “pep” Buquet
e4fdc477b7
DTD, XSD: Add tags element in header
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 13:58:19 +01:00
Guus der Kinderen
aa0318ca5e Add color to output of XEP validation script
Github workflows tend to be verbose. This can make it difficult to determine why a failure occurs.

To help identify causes for validation failures, the output of the XEP-0001 conformance script should have a bit of color to highlight the important bits.
2022-12-21 09:34:00 +01:00
Marvin W
75c092a8fe
XEP-0428: Fallback Indication v0.2.0
- Add 'for' attribute such that entities can discover what the fallback is for.
- Allow to specify that only one of <subject/> or <body/> is meant as a fallback.
- Allow to specify the part of respective text that is meant as fallback where applicable.
- Don't use encryption example, which should use XEP-0380 instead.
2022-12-21 00:15:55 +01:00
Jonas Schäfer
40e954b499 Merge branch 'protoxep-sla' into premerge 2022-12-20 19:31:53 +01:00
Jonas Schäfer
00b5aee816 XEP-0001 validator: allow xxxx as number 2022-12-20 19:31:09 +01:00
Kim Alvefur
242d36e65d sla: Clarify direction of limits advertisment (thanks Flow)
Co-authored-by: Florian Schmaus <flo@geekplace.eu>
2022-12-20 19:28:28 +01:00
Kim Alvefur
e60fd2b83d ProtoXEP editorial help by MattJ
My earliest drafts were on 2021-08-20.
Have mosly working implementation that interops with itself.
2022-12-20 19:28:21 +01:00
Kim Alvefur
958aad87ab Initial commit of Path MTU protoXEP 2022-12-20 19:28:15 +01:00
Jonas Schäfer
4fc8b17cab Merge branch 'feature/ci-validation' into premerge 2022-12-20 19:24:09 +01:00
Jonas Schäfer
fb65475276 Merge branch 'xep-0045' into premerge 2022-12-20 19:21:38 +01:00
nicoco
b4bacd8f41 Add MUC service shutdown example 2022-12-20 19:21:30 +01:00
Jonas Schäfer
21b353e39b XEP-0428: add Marvin as co-author
As per council vote.
2022-12-20 18:43:47 +01:00
Jonas Schäfer
89ec670e36 Accept inbox/pubsub-targeted-encryption.xml as XEP-0477 2022-12-20 18:43:14 +01:00
Jonas Schäfer
d78a3a3a0f Accept inbox/pubsub-signing-openpgp.xml as XEP-0476 2022-12-20 18:43:04 +01:00
Jonas Schäfer
bbc6fbdac0 Accept inbox/pubsub-signing.xml as XEP-0475 2022-12-20 18:42:57 +01:00
Guus der Kinderen
286717f769 for #1240: Integrate XEP validation in CI
Adds a Github workflow that executes `tools/validate-xep0001-conformance.sh` against any changed XEP that was changed in a pull request.
2022-12-15 11:00:28 +01:00
Jonas Schäfer
7eaa3962a8 Merge branch 'fix/shtml-links' into premerge 2022-12-13 18:50:21 +01:00
Jonas Schäfer
32b23f1b91 Accept inbox/xep-downgrade-prevention.xml as XEP-0474 2022-12-13 18:39:57 +01:00
Jonas Schäfer
915884bc52 Accept inbox/pubsub-encryption.xml as XEP-0473 2022-12-13 18:39:37 +01:00
Jonas Schäfer
e54e113c05 Accept inbox/pubsub-social-feed.xml as XEP-0472 2022-12-13 18:39:25 +01:00
Jonas Schäfer
c2364c0f26 Accept inbox/events.xml as XEP-0471 2022-12-13 18:39:04 +01:00
Jonas Schäfer
28b3e18760 Merge branch 'xep-0045' into premerge 2022-12-13 18:30:52 +01:00
Jonas Schäfer
a60a28b54c Merge branch 'xep-0167' into premerge 2022-12-13 18:30:17 +01:00
Jonas Schäfer
da8bed50e4 Merge branch 'xep-0004' into premerge 2022-12-13 18:24:22 +01:00
Sam Whited
5c0c7cd8c5 XEP-0004: clarify rules for multi-item forms
Signed-off-by: Sam Whited <sam@samwhited.com>
2022-12-13 18:24:14 +01:00
Jonas Schäfer
f450ddd9c0 Merge branch '1235_validate-xep-0001-conformance' 2022-12-13 18:11:26 +01:00
Stephen Paul Weber
ff13349982
Use PEP (and XEP-0222) for XEP-0292
While the existing version says this was rejected by community consensus, since
then the consensus of most implementations is to use PEP directly even though it
was never specified to work, and that the raw-IQ protocol adds complexity.  This
update removes the raw-IQ mode and specifies the reuse of PEP.
2022-11-09 09:55:24 -05:00
Jonas Schäfer
55e6c02184 fix path 2022-11-08 21:37:00 +01:00
Jonas Schäfer
2d4b8b5728 Merge branch 'protoxep/sasl2-scram-upgrade' into premerge 2022-11-08 21:19:17 +01:00
Jonas Schäfer
1c07e6ce2f Merge branch 'protoxep/fast' into premerge 2022-11-08 21:18:55 +01:00
Jonas Schäfer
2ef743cb6a Merge branch 'protoxep/pubsub-targeted-encryption' into premerge 2022-11-08 21:18:35 +01:00
Jonas Schäfer
39d78d8a62 Merge branch 'protoxep/pubsub-signing-openpgp' into premerge 2022-11-08 21:17:08 +01:00
Jonas Schäfer
b4264ea689 Merge branch 'protoxep/pubsub-signing' into premerge 2022-11-08 21:16:48 +01:00
Guus der Kinderen
fbc0072c92 for #1235: fix incorrect exemption for XEP-0143 2022-11-06 20:31:58 +01:00
Guus der Kinderen
bee4c93cd3 for #1235: Do not exit script when XPATH yields no result
xmllint will return exit code 10 when an XPATH query finds no matches. With the changes in this commit, the script isn't stopped. Instead, it uses an empty value, which is likely to cause the validation checks (further down in the script) to fail.
2022-11-06 20:08:15 +01:00
Guus der Kinderen
028fd1a685 for #1235: Add legal notice validation
This adds a check for the usage of the _entity reference_ that is the legal notice.
2022-11-06 19:20:34 +01:00
Guus der Kinderen
56cef32c91 for #1235: Add header type validation. 2022-11-06 11:11:13 +01:00
Guus der Kinderen
da76032e24 for #1235: Add revision block version validation. 2022-11-06 10:40:02 +01:00
Guus der Kinderen
269e4d620a for #1235: Add xep.xsl XML stylesheet usage validation 2022-11-06 10:14:54 +01:00
Guus der Kinderen
3f6f199159 for #1235: variable casing to conform to convention 2022-11-06 09:45:33 +01:00
Guus der Kinderen
f1197f143a for #1235: Double quote to prevent globbing and word splitting.
As per @horazont's feedback:
> Whenever you reference a variable ($foobar) and unless you know what you're doing, put it in double quotes.
2022-11-06 09:40:32 +01:00
Guus der Kinderen
7389c8a3e9 for #1235: Remove redundant braces in if-expression
As per @horazont's feedback:
> You do not need () around the command in an if. I think that causes a subshell to spawn, the effects of which I'm not certain about.

Further Googling suggests that the exit status of a pipeline is that of the most recently executed foreground pipeline, meaning that the exit code can be used directly in conditional statements.
2022-11-06 09:33:59 +01:00
Guus der Kinderen
d65a5b4c2f for #1235: Use set -euo pipefail instead of set -e
As per @horazont's feedback: `-u` shouts at you if you use an undefined variable (very useful to catch typos)
and `-o pipefail` improves error handling by also failing if any of the commands in a pipe fail.
2022-11-06 09:29:18 +01:00
Guus der Kinderen
a7149be8c0 fixes #1235: Script that validates XEP-0001 conformance
This adds a simple bash script that checks if a provided file (filename to be provided as first argument) conforms to XEP-0001.

Expected to be executed from the directory that holds all xep XML files.
Requires one argument: the file name of the xep to be validated, eg:

    $ tools/validate-xep0001-conformance.sh xep-0010.xml

exit status will be non-zero upon validation failure.

requires: bash, xmllint
2022-11-05 16:53:26 +01:00
Maxime “pep” Buquet
8eb047a669
xep.xsl: Replace shtml link to community page
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-11-03 11:38:32 +01:00