KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
elasticsearch2jsonschema
★ 10
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
WikiSearch
:
iOS - API Search tutorial with UITableViewController
zhihu_spider
:
这是一个zhihu爬虫,涉及到scrapy多块知识,同时涉及几项应对反爬虫设计,最后使用sqlalchemy将爬得结果进行数据库导入。
raspberry_pi_shadowsocks
:
raspberry pi 3b+ 树莓派 shadowsocks 科学上网
ritley
:
Tiny, Fast and Extensible Library for JavaScript Back-End Development
tacobrite
:
Welcome to tacobrite, an eventbrite clone!
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
elasticsearch2jsonschema
?
Download (.md)
# elasticsearch2jsonschema: generate JSON Schema from Elasticsearch mappings Description --------------- [jsonschema2pojo](http://www.jsonschema2pojo.org/) is my preferred tool to generate java POJOs from json files. Most of the times I already have some json samples I can feed to jsonschema2pojo, but sometimes I do not have that. What I have is the Elasticsearch mappings, would it be some way to feed those to jsonschema2pojo? Maybe there is...another thing you can feed is JSON Schema, and Elasticsearch mappings format looks like JSON Schema right? Unfortunately, it is far from it. But it was not hard to hack some Groovy script to generate valid JSON Schema from Elasticsearch mappings. As a bonus, now you can go from Elasticsearch mappings to any other tool that accepts JSON Schema as input. The only thing that should the changed for real usage is this: getContainedObject method is used to detect arrays. Customize it for your own use case. Other than that, it should work beautifully, as it did for me.