Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

screwdriver-data-schema

Package Overview
Dependencies
Maintainers
2
Versions
510
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screwdriver-data-schema - npm Package Compare versions

Comparing version 4.0.1 to 5.0.0

api/index.js

12

index.js
'use strict';
const build = require('./model/build');
const job = require('./model/job');
const pipeline = require('./model/pipeline');
const platform = require('./model/platform');
const user = require('./model/user');
const pagination = require('./model/pagination');
module.exports = { build, job, pipeline, platform, user, pagination };
const models = require('./models');
const api = require('./api');
const config = require('./config');
module.exports = { models, api, config };
{
"name": "screwdriver-data-schema",
"version": "4.0.1",
"version": "5.0.0",
"description": "Internal Data Schema of Screwdriver",

@@ -42,4 +42,4 @@ "main": "index.js",

"dependencies": {
"joi": "^8.1.0"
"joi": "^9.0.0"
}
}

@@ -10,8 +10,14 @@ # Screwdriver Data Schema

The model represents a combination of what is required to create the resource and what is possible
for returning from the resource.
It's broken down into three sections:
- `api` - API related input/output structure
- `config` - Screwdriver.yaml definitions
- `models` - Internal data resources
## Methodology
## Models
Each model contains four (4) schemas:
The model represents a combination of what is required to create the resource and what is possible for returning from the resource.
### Methodology
Each model contains seven (7) schemas:
- `base` - List of all available fields in the model

@@ -21,2 +27,5 @@ - `get` - Expected return values from a GET request against this resource

- `update` - Expected input values when making an UPDATE action against this resource
- `keys` - List of keys that combine to represent a unique row
- `tableName` - Internal name of the table
- `indexes` - Secondary indexes to make search/lookup faster

@@ -26,3 +35,3 @@ ## Usage

```bash
npm install screwdriver-data-model
npm install screwdriver-data-schema
```

@@ -29,0 +38,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc