Schema: inventory

Schema Definition

{
    "$schema": "http:\/\/json-schema.org\/schema#",
    "type": "object",
    "properties": {
        "product": {
            "type": "object",
            "properties": {
                "meta": {
                    "type": "object"
                },
                "guid": {
                    "type": "string",
                    "description": "The Product Unique Identifer from the RBE"
                },
                "type": {
                    "type": "object",
                    "properties": {
                        "stub": {
                            "type": "string"
                        },
                        "guid": {
                            "type": "string",
                            "description": "The Product Type GUID, if it has one, else a stub"
                        },
                        "meta": {
                            "type": "object"
                        },
                        "name": {
                            "type": "string"
                        },
                        "unit": {
                            "type": "object",
                            "properties": {
                                "count": {
                                    "type": "number"
                                },
                                "type": {
                                    "enum": [
                                        "bulk",
                                        "pack",
                                        "each"
                                    ],
                                    "type": "enum"
                                },
                                "weight": {
                                    "type": "number"
                                }
                            }
                        }
                    }
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "guid": {
            "required": true,
            "type": "string",
            "description": "The Inventory Unique Identifier"
        },
        "name": {
            "type": "string"
        }
    }
}

Schema Samples