Sha256: bd113dc38e18cb1f5c7c156def883768176e28696cc33c45a089bb42ff71f983

Contents?: true

Size: 1.57 KB

Versions: 4

Compression:

Stored size: 1.57 KB

Contents

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Product set",
    "type": "array",
    "items": {
        "title": "Product",
        "type": "object",
        "properties": {
            "id": {
                "description": "The unique identifier for a product",
                "type": "number"
            },
            "name": {
                "type": "string"
            },
            "price": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
            },
            "tags": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "minItems": 1,
                "uniqueItems": true
            },
            "dimensions": {
                "type": "object",
                "properties": {
                    "length": {"type": "number"},
                    "width": {"type": "number"},
                    "height": {"type": "number"}
                },
                "required": ["length", "width", "height"]
            },
            "warehouseLocation": {
                "description": "Coordinates of the warehouse with the product",
                "$ref": "http://json-schema.org/geo"
            },
            "userIds": {
              "type":"array",
              "required":false,
              "items": {
                "type":"string",
                "required":false,
                "example": "1823257618648445648"
              }
            }
        },
        "required": ["id", "name", "price"]
    }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
swagui-0.5.4 test/doc/schemas/account_get_request_body.schema.json
swagui-0.5.3 test/doc/schemas/account_get_request_body.schema.json
swagui-0.5.2 test/doc/schemas/account_get_request_body.schema.json
swagui-0.5.1 test/doc/schemas/account_get_request_body.schema.json