{"id":19201400,"url":"https://github.com/dekelev/express-cassandra-swagger","last_synced_at":"2026-04-13T01:03:46.062Z","repository":{"id":42888323,"uuid":"254854313","full_name":"dekelev/express-cassandra-swagger","owner":"dekelev","description":"JSON schema YAML generator for Express-Cassandra models. Intended to be used together with automatic Swagger generators","archived":false,"fork":false,"pushed_at":"2023-07-18T21:40:45.000Z","size":604,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T13:18:16.374Z","etag":null,"topics":["express-cassandra","json","json-schema","model","schema","swagger","yaml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dekelev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-11T11:36:16.000Z","updated_at":"2023-03-04T12:26:52.000Z","dependencies_parsed_at":"2024-11-09T12:38:40.466Z","dependency_job_id":"9cf509c2-dfbc-4912-84ae-b9f022a9ff53","html_url":"https://github.com/dekelev/express-cassandra-swagger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Fexpress-cassandra-swagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Fexpress-cassandra-swagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Fexpress-cassandra-swagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Fexpress-cassandra-swagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dekelev","download_url":"https://codeload.github.com/dekelev/express-cassandra-swagger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240273864,"owners_count":19775342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express-cassandra","json","json-schema","model","schema","swagger","yaml"],"created_at":"2024-11-09T12:38:29.508Z","updated_at":"2026-04-13T01:03:46.033Z","avatar_url":"https://github.com/dekelev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-cassandra-swagger\n  \n  [![Build Status](https://travis-ci.org/dekelev/express-cassandra-swagger.svg?branch=master)](https://travis-ci.org/dekelev/express-cassandra-swagger)\n  [![Coverage Status](https://coveralls.io/repos/github/dekelev/express-cassandra-swagger/badge.svg?branch=master)](https://coveralls.io/github/dekelev/express-cassandra-swagger?branch=master)\n  [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/standard/semistandard)\n  [![Dependency Status](https://img.shields.io/david/dekelev/express-cassandra-swagger.svg)](https://david-dm.org/dekelev/express-cassandra-swagger)\n  [![npm](https://img.shields.io/npm/v/express-cassandra-swagger.svg?maxAge=3600)](https://www.npmjs.com/package/express-cassandra-swagger)\n\nSwagger definition generator for Express-Cassandra models.  Forked from [objection-swagger](https://github.com/kibertoad/objection-swagger).\n\n```\n/**\n * @typedef {Object} GeneratedSwaggerYaml\n * @property {string} name Name of the model\n * @property {string} schema JSON schema in YAML format\n */\n\n/**\n * Generates JSON schemas for inclusion in Swagger specifications from Express-Cassandra models\n * @param {Model|Model[]} modelParam - model(s) to generate schemas for\n * @param {Options} opts\n * @returns {GeneratedSwaggerYaml[]} generated JSON schemas as strings (in YAML format)\n */\nfunction generateSchema(modelParam, opts = {})\n```\n\n```\n/**\n * @typedef {Object} GeneratedSwagger\n * @property {string} name Name of the model\n * @property {Object} schema JSON schema\n */\n\n/**\n * Generates JSON schemas from Express-Cassandra models\n * @param {Model|Model[]} modelParam - model(s) to generate schemas for\n * @param {Options} opts\n * @returns {GeneratedSwagger[]} generated JSON schemas as objects\n */\nfunction generateSchemaRaw(modelParam, opts = {})\n```\n\n```\n/**\n * Generates and saves into specified directory JSON schema files for inclusion in Swagger specifications from given\n * Express-Cassandra models\n * @param {Model|Model[]} modelParam - model(s) to generate schemas for\n * @param {string} targetDir - directory to write generated schemas to. Do not add '/' to the end.\n * @param {Options} opts\n * @returns {Promise} - promise that is resolved after schemas are written\n */\nfunction saveSchema(modelParam, targetDir, opts = {})\n```\n\n## License\n\nLicensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekelev%2Fexpress-cassandra-swagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdekelev%2Fexpress-cassandra-swagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekelev%2Fexpress-cassandra-swagger/lists"}