Page MenuHomePhabricator

Community configuration: Support nullable types
Open, LowPublic

Description

In JSONSchema, it is possible to declare a certain field is nullable. Using MediaWiki-extensions-CommunityConfiguration's representation of the schema, this would look like this:

class ExampleSchema extends JsonSchema {
     public const Number = [
          self::TYPE => [ self::TYPE_NUMBER, 'null' ],
     ];
}

CommunityConfiguration's form editor is not able to handle this situation correctly as of now.