Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

object list can not render !!! #82

Open
@Yaccc

Description

my rule example is :
{ "desc": "第二个rule", "ruleName": "第二个rule的规则名称", "open": true, "version": 0, "gray": 0.9, "match": "all", "workGroup": "test", "workUnit": "test", "workSite": "test", "rules": [ { "desc": null, "ruleName": "AppNameRouterHandler", "order": "1", "open": false, "rule": "demetetestr2,test" }, { "desc": null, "ruleName": "ExpressionRouterHandler", "order": "5", "open": false, "rule": "invocation.getInterface=='1223'" } ] }

JSON schema is
{{ "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://example.com/root.json", "type": "object", "title": "The Root Schema", "required": [ "desc", "ruleName", "open", "version", "gray", "match", "workGroup", "workUnit", "workSite", "rules" ], "properties": { "desc": { "$id": "#/properties/desc", "type": "string", "title": "The Desc Schema", "default": "", "examples": [ "第二个rule" ], "pattern": "^(.*)$" }, "ruleName": { "$id": "#/properties/ruleName", "type": "string", "title": "The Rulename Schema", "default": "", "examples": [ "第二个rule的规则名称" ], "pattern": "^(.*)$" }, "open": { "$id": "#/properties/open", "type": "boolean", "title": "The Open Schema", "default": false, "examples": [ true ] }, "version": { "$id": "#/properties/version", "type": "integer", "title": "The Version Schema", "default": 0, "examples": [ 0 ] }, "gray": { "$id": "#/properties/gray", "type": "number", "title": "The Gray Schema", "default": 0.0, "examples": [ 0.9 ] }, "match": { "$id": "#/properties/match", "type": "string", "title": "The Match Schema", "default": "", "examples": [ "all" ], "pattern": "^(.*)$" }, "workGroup": { "$id": "#/properties/workGroup", "type": "string", "title": "The Workgroup Schema", "default": "", "examples": [ "test" ], "pattern": "^(.*)$" }, "workUnit": { "$id": "#/properties/workUnit", "type": "string", "title": "The Workunit Schema", "default": "", "examples": [ "test" ], "pattern": "^(.*)$" }, "workSite": { "$id": "#/properties/workSite", "type": "string", "title": "The Worksite Schema", "default": "", "examples": [ "test" ], "pattern": "^(.*)$" }, "rules": { "$id": "#/properties/rules", "type": "array", "title": "The Rules Schema", "items": { "$id": "#/properties/rules/items", "type": "object", "title": "The Items Schema", "required": [ "desc", "ruleName", "order", "open", "rule" ], "properties": { "desc": { "$id": "#/properties/rules/items/properties/desc", "type": "null", "title": "The Desc Schema", "default": null, "examples": [ null ] }, "ruleName": { "$id": "#/properties/rules/items/properties/ruleName", "type": "string", "title": "The Rulename Schema", "default": "", "examples": [ "AppNameRouterHandler" ], "pattern": "^(.*)$" }, "order": { "$id": "#/properties/rules/items/properties/order", "type": "string", "title": "The Order Schema", "default": "", "examples": [ "1" ], "pattern": "^(.*)$" }, "open": { "$id": "#/properties/rules/items/properties/open", "type": "boolean", "title": "The Open Schema", "default": false, "examples": [ false ] }, "rule": { "$id": "#/properties/rules/items/properties/rule", "type": "string", "title": "The Rule Schema", "default": "", "examples": [ "demetetestr2,test" ], "pattern": "^(.*)$" } } } } } }
then result is like this:
image

There is also a small problem that Boolean prompts, like title, cannot be modified!!!

@yourtion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /