npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

openapi-datamodel

v1.0.2

Published

This CLI tool visualizes the schemas described in an OpenAPI Specification. It borrows some of the UML Class Diagram notations.

Downloads

15

Readme

This CLI tool visualizes the schemas described in an OpenAPI Specification. It borrows some of the UML Class Diagram notations.

https://www.plantuml.com/plantuml/svg/hPL1RnCn48Nl-okiSg65H2JSUa1DJt01H2Kk24LEFBknwhKJUvOIeF-T3M5vYjUEUw2NAZD-tppRivwRmD9prvfgRMG8GbmyznGknLlD5-BPmqOpYP_LOvJzA1iwl-AzKuHq9Vg_Oq8hSIq2UsqRH8MLBI4UmpghgDQMr5BQ_OTwELjAO_h_ysG5tcyfLSD8g_f8drevPqZQKPtFv8DszfsjNPByxPXFmTUU99EwtPz9BZYLxBOgeKGoLiQc5o4GHvTHEB_vt_ER9NVPFUMAoiTTQqDt-iSXforJGtxawxPRtnCdJTnJ-YHTPxbFsAvTZO0lFUqkXMmQJuraxMpeqKOt6rwPZe3V7KsZ4P30FIQpkAjy4zsHzElD9mhRtW2bEzInDFsLXTHEOF2V_JqPunuEY1SdEmWuebY_bPuiPmbOacVWBDAKQ56Hi-0H1oTRUzU2W3YxFBTrIjUwP12hogJ_Rd7NaK-uWvQ-SrxjlA93uWnWjKzPKjhJchMpfGOfzySvGdFUM_In8Y5h9fy3umlQTHJ63X-hU0XDfx_U274wUgx5nQlfT3OU7NZwgl9qkPfCCkGhV65PFqL-oUIy08z6LWdt6hW_gCaNvPX9VPq0YL9v732OFR1Lc3YWfbUawULD8-OAsupeUKVWH6zwt1UWN8cDHa-a1XAa684SDLM-CCGf-h2Lg6Hr-XZ10GR9OE3ugo0PMZzoNPHXdWn2H69fKhd0PI6IAneF2LH5Q2HEQr4N8HIEtYim01xanrybPVJw3s84IkqLtrJSNkNwJ--kCWkpOY0CFwiRigfhpMy0

The white classes are describing the data structures of data apearing in the response payloads of the the API. The light yellow classes describe the data structures of the data sent through the reponse body of a specific API operation. The light blue classes are describing the concepts appearing in both request and response bodies. In some cases, the same concept can appear in both the send and receieved data, however with different properties. In this example, the aggregations concept appear in both written and read data. However the written one does't have any propoerties of primitive data type.

The arrows shapes distinguish the different relationships between the datamodel's concepts.

To install:

npm i openapi-datamodel -g

CLI Options:

Options:
  -V, --version          output the version number
  -i, --input <input>    input file
  -o, --output <output>  output file
  -d, --details          show details
  -res, --responses      show only responses dm
  -req, --requests       show only requests dm
  -m, --merge            merge requests and responses
  -h, --help             display help for command

example:

  • To generate a plantUML visualization of the whole datamodel:
rdm -i https://raw.githubusercontent.com/boscore/ibc_plugin_eos/aa7fcb10d07593891ae8f50871dd31decf79d1ba/plugins/chain_api_plugin/chain.swagger.yaml  -o output.puml
  • To generate a plantUML visualization of the part of datamodel representing the data that is sent in the request bodies of the operations, use the -req option :
 rdm -i https://raw.githubusercontent.com/boscore/ibc_plugin_eos/aa7fcb10d07593891ae8f50871dd31decf79d1ba/plugins/chain_api_plugin/chain.swagger.yaml  -o output.puml -req
  • To generate a plantUML visualization of the part of datamodel representing the data that is sent back to the client in the responses, use the -res option :
 rdm -i https://raw.githubusercontent.com/boscore/ibc_plugin_eos/aa7fcb10d07593891ae8f50871dd31decf79d1ba/plugins/chain_api_plugin/chain.swagger.yaml  -o output.puml -res