Gathering detailed insights and metrics for @windingtree/glider-types
Gathering detailed insights and metrics for @windingtree/glider-types
Gathering detailed insights and metrics for @windingtree/glider-types
Gathering detailed insights and metrics for @windingtree/glider-types
npm install @windingtree/glider-types
Typescript
Module System
Node Version
NPM Version
76.6
Supply Chain
95.1
Quality
80
Maintenance
100
Vulnerability
81.3
License
JavaScript (55.14%)
HTML (41.51%)
CSS (1.87%)
Shell (1.47%)
Total Downloads
11,439
Last Day
2
Last Week
27
Last Month
68
Last Year
1,105
GPL-3.0 License
125 Commits
5 Forks
6 Watchers
5 Branches
7 Contributors
Updated on Aug 05, 2022
Minified
Minified + Gzipped
Latest Version
5.0.0
Package Id
@windingtree/glider-types@5.0.0
Unpacked Size
366.42 kB
Size
56.45 kB
File Count
14
NPM Version
8.16.0
Node Version
16.20.0
Published on
Jun 21, 2023
Cumulative downloads
Total Downloads
Last Day
-50%
2
Compared to previous day
Last Week
575%
27
Compared to previous week
Last Month
-74.5%
68
Compared to previous month
Last Year
-44.9%
1,105
Compared to previous year
20
Typescript types, JSON schemas and swagger configuration files of Glider projects: Derbysoft Proxy, ...
1yarn add @windingtree/glider-types
1const fs = require('fs'); 2const path = require('path'); 3 4// Importing the swagger doc 5const doc = fs.readFileSync( 6 path.resolve('node_modules', '@windingtree/glider-types/dist/derbysoft_proxy.yaml'), 7 'utf8' 8);
1import { derbysoft_proxy } from '@windingtree/glider-types'; 2 3// derbysoft_proxy.definitions.Price 4// ... 5// ...
1import type { Price } from '@windingtree/glider-types/dist/derbysoft_proxy';
All schema definitions are collected in the commonly shared file located at ./src/shared-definitions.yaml
.
Project-specific swagger configuration files are located in the named files like ./src/derbysoft-proxy.yaml
.
Project-specific swagger configuration files should not contain any data type definitions. Instead of that, all links to the definitions must be organized using schema references like $ref: "#components/schemas/DefinitionKey"
.
During the module build, all definitions that have been referred to will be built in the final swagger file of every specific project.
Every definition must follow these mandatory rules:
If it is required, a definition can have format validation rules in regular expressions format or native rules supported by swagger.
To add new project:
./scripts/build.js
to the supportedApis
constant at line 11 in format:1{ 2 name: 'project-name', // Unique project name 3 path: 'src/project-name.yaml' // Base project swagger file 4}
Please check the CONTRIBUTING.md
No vulnerabilities found.
No security vulnerabilities found.