{"id":20864877,"url":"https://github.com/ljqx/odata-json-schema","last_synced_at":"2025-05-12T10:32:09.420Z","repository":{"id":57313442,"uuid":"171654240","full_name":"ljqx/odata-json-schema","owner":"ljqx","description":"Generate JSON Schemas with OData informations from OData $metadata.","archived":false,"fork":false,"pushed_at":"2019-03-18T06:58:34.000Z","size":95,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-03T10:50:20.684Z","etag":null,"topics":["json-schema","odata"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ljqx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-20T10:43:10.000Z","updated_at":"2023-03-21T23:30:40.000Z","dependencies_parsed_at":"2022-09-20T23:22:14.500Z","dependency_job_id":null,"html_url":"https://github.com/ljqx/odata-json-schema","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljqx%2Fodata-json-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljqx%2Fodata-json-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljqx%2Fodata-json-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljqx%2Fodata-json-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljqx","download_url":"https://codeload.github.com/ljqx/odata-json-schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253720047,"owners_count":21952948,"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":["json-schema","odata"],"created_at":"2024-11-18T05:44:52.105Z","updated_at":"2025-05-12T10:32:08.970Z","avatar_url":"https://github.com/ljqx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# odata-json-schema\n\nGenerate JSON Schemas with OData informations from OData $metadata.\n\n## Example\nWith [the $metadata of service used in OData Doc](https://services.odata.org/V4/TripPinService/$metadata), check `example` folder for the JSON Schemas generated.\n\n## Usage\n```js\nconst { generateJSONSchema } = require('odata-json-schema')\n\ngenerateJSONSchema('https://services.odata.org/V4/TripPinService', {\n  dist: './dist',\n  // most types are nullable, you may want to limit generated schema size by considering some of the types are by default nullable\n  isByDefaultNullable(ref) {\n    if (ref === 'Edm/String') {\n      return true;\n    }\n    return !ref.startsWith('Edm');\n  },\n  // by default enum value is not generated into the schema, if you need it set this value to true\n  withEnumValue: true,\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljqx%2Fodata-json-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljqx%2Fodata-json-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljqx%2Fodata-json-schema/lists"}