From 0530c2d50aa7db142a678d78dbbe4e68c39fa020 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Fri, 18 Oct 2024 10:52:00 +0200 Subject: [PATCH] feat: :sparkles: Mandata Unix-style LF line endings --- app/changelog/page.mdx | 1 + app/entities/page.mdx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/changelog/page.mdx b/app/changelog/page.mdx index eaec9a9..0bc13f7 100644 --- a/app/changelog/page.mdx +++ b/app/changelog/page.mdx @@ -11,6 +11,7 @@ This page lists changes since Working Draft 3. {{ className: 'lead' }} ## Since WD 4 - Removed URI from [Report](/extensions/reports), and replaced `reason` with `tags`. +- Mandated Unix-style `\n` line endings in all text fields. ## Since WD 3 diff --git a/app/entities/page.mdx b/app/entities/page.mdx index fb036a2..2bad0d5 100644 --- a/app/entities/page.mdx +++ b/app/entities/page.mdx @@ -79,7 +79,8 @@ Any field in an entity not marked as `required` may be omitted or set to `null`. ## Serialization -When serialized to a string, the JSON representation of an entity should follow the following rules: +When serialized to a string, the JSON representation of an entity must follow the following rules: - Keys must be sorted lexicographically. -- Should use UTF-8 encoding. +- Must use UTF-8 encoding. - Must be **signed** using the relevant [User](/entities/user)'s private key, or the [instance's private key](/entities/instance-metadata) if the entity is not associated with a particular user. +- Must use Unix-style `\n` line endings (LF). \ No newline at end of file