Topic on Talk:Requests for comment/Zero architecture

Generalize JSON support

2
SPage (WMF) (talkcontribs)

From RFC

  • Zero extension configurations will be stored as wiki pages in JSON format, one page per partner.
  • Config pages will reside on meta-wiki, in a dedicated namespace Zero:
  • Zero: namespace will be writable only by people in a dedicated security group
  • Custom content-handler will validate json structure on Save, and invalidate any related caches.

Many developers want to store JSON on-wiki (e.g. User:Yuvipanda/Campaigns namespace proposal#Implementation, so I hope you implement a general-purpose JsonContent with the last bullet in a subclass. As you probably know, Extension:EventLogging implements a JsonSchemaContent type in a Schema: namespace on meta-wiki and provides a global efSchemaValidate() function, useful code to borrow and invoke.

This post was posted by SPage (WMF), but signed as S Page (WMF).

Yurik (talkcontribs)

It would be awesome if someone would write a generic schema-based json editor/visualizer for wiki. Our requirements are fairly complex, and involve a number of validation and cleanup steps (like sorting and de-duplicating certain entries), as well as display of additional information such as banners at the bottom and language fallbacks on the right hand side. See meta:Zero:250-99.

Reply to "Generalize JSON support"