scitran/core

View on GitHub
swagger/schemas/definitions/common.json

Summary

Maintainability
Test Coverage
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
        },
        "description": {
            "type": "string"
        },
        "objectid": {
            "type": "string",
            "pattern": "^[a-fA-F0-9]{24}$"
        },
        "string-id": {
            "type": "string",
            "maxLength": 64,
            "minLength": 2,
            "pattern": "^[0-9a-z][0-9a-z.@_-]{0,30}[0-9a-z]$"            
        },
        "user-id": {
            "type": "string",
            "format": "email"
        },
        "info": {
            "type": "object"
        },
        "timestamp": {
            "type": ["string", "null"], 
            "format": "date-time"
        },
        "deleted-count": {
            "type":"object",
            "properties": {
                "deleted": {
                    "type": "integer"
                }
            }            
        },
        "modified-count": {
            "type": "object", 
            "properties": {
                "modified": {
                    "type": "integer"
                }
            }
        },
        "object-created": {
            "type": "object",
            "properties": {
                "_id": {
                    "type": "string"
                }
            },
            "x-sdk-return": "_id"
        }
    }
}