vespa-engine/vespa

Schema browser with syntax highlighting

クローズ

#16,870 opened on 2021/03/10

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Java (561 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (4,948 個のスター)
PR merge metrics
 (平均マージ 1d 22h) (30d で 209 merged PRs)

説明

One can browse schemas using http://localhost:19071/application/v2/tenant/default/session/2/content/schemas/ (replace 2 with current session) or support reading (a) file(s). Add pretty-print and syntax highlighting. Maybe write a .sd-to-json converter, so easy to build a schema object model from json in other code.

Serving the code can be done like the querybuilder / https://github.com/vespa-engine/vespa/blob/master/container-search-gui/src/main/java/com/yahoo/search/query/gui/GUIHandler.java - need to add a binding in services.xml that maps to the code, put (javascript) in src/main/resources.

Then we can consider integrating this deeper in Vespa later, and still get started easy "on the outside" using the current interfaces

Document Types in Schemas can be inherited, build support for visualizing this / what the final schema resolves to.

コントリビューターガイド