Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object list can not render !!! #82

Open
Yaccc opened this issue Sep 30, 2019 · 0 comments
Open

object list can not render !!! #82

Yaccc opened this issue Sep 30, 2019 · 0 comments

Comments

@Yaccc
Copy link

Yaccc commented Sep 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant