wiki.techinc.nl/includes/content
Siddharth VP 3af9036b99 Customise error message for invalid JSON, add hook
When invalid JSON is being saved, change the error message from the
generic "invalid-content-data" to "invalid-json-data" with the specific
error passed as param.

Allow extensions to hook into JSON validation, enabling them to apply
additional validations for specific JSON files such as MediaWiki:*.json
config files. The page identity is passed to the hook.

Bug: T313254
Change-Id: If9590c29ed0b871b03a3db8f13e72ee9cfdd7e2b
2022-08-26 01:22:10 +05:30
..
Hook Customise error message for invalid JSON, add hook 2022-08-26 01:22:10 +05:30
Renderer Replace deprecated calls ParserOptions::newCanonical( 'canonical' ) 2022-06-16 14:22:24 +01:00
Transform
AbstractContent.php Replace deprecated calls ParserOptions::newCanonical( 'canonical' ) 2022-06-16 14:22:24 +01:00
CodeContentHandler.php
Content.php Clarify Content::getTextForSummary() $maxLength 2022-07-22 17:26:07 +02:00
ContentHandler.php Move the setup of fake revision for preview to ContentHandler 2022-08-08 14:02:26 +00:00
ContentHandlerFactory.php Do minor code cleanup 2022-06-24 13:52:42 +02:00
ContentModelChange.php ManualLogEntry::getComment() should always return string 2022-07-09 18:58:19 -04:00
CssContent.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
CssContentHandler.php Use canonical parser options when rendering JavaScript/CSS for side effects 2022-07-28 10:45:35 -04:00
FallbackContent.php content: Remove UnknownContent/UnknownContentHandler class alias 2022-05-29 06:20:45 +00:00
FallbackContentHandler.php content: Remove UnknownContent/UnknownContentHandler class alias 2022-05-29 06:20:45 +00:00
FileContentHandler.php
IContentHandlerFactory.php
JavaScriptContent.php phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
JavaScriptContentHandler.php Use canonical parser options when rendering JavaScript/CSS for side effects 2022-07-28 10:45:35 -04:00
JsonContent.php content: Document use cases for JsonContent 2022-02-08 22:39:45 +00:00
JsonContentHandler.php Customise error message for invalid JSON, add hook 2022-08-26 01:22:10 +05:30
MessageContent.php Use truncateForDatabase in MessageContent 2022-07-22 17:53:20 +02:00
TextContent.php Use MainConfigNames instead of string literals, #3 2022-04-26 14:31:26 +03:00
TextContentHandler.php Use ParserOptions::setSuppressTOC() for Javascript content 2022-07-21 15:29:16 -04:00
ValidationParams.php Move Content::prepareSave to ContentHandler 2021-11-11 15:40:42 +02:00
WikitextContent.php Fix edit API adding empty section title when creating new pages 2022-07-05 21:06:06 +00:00
WikitextContentHandler.php Merge "Add new ContentHandler::supportsPreloadContent() feature" 2022-07-06 22:38:10 +00:00
WikiTextStructure.php Do minor code cleanup 2022-06-24 13:52:42 +02:00