Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
    "$schema": "http://json-schema.org/draft-07/schema",
    "type": "object",
    "properties": {
        "AccessoriesCategory": {
            "$ref": "#/definitions/AccessoriesCategory"
        }
    },
    "required": [
        "AccessoriesCategory"
    ],
    "title": "AccessoriesCategory",
    "definitions": {
        "AccessoriesCategory": {
            "$id": "#/properties/AccessoriesCategory",
            "type": "object",
            "title": "AccessoriesCategoryschema",
            "required": [
                "tenantId",
                "moduleName",
                "code",
                "active"
            ],
            "uniqueIndexFields": [
                "code"
            ],
            "properties": {
                "tenantId": {
                    "$id": "#/properties/tenantId",
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 8
                },
                "moduleName": {
                    "$id": "#/properties/moduleName",
                    "type": "string",
                    "minLength": 5
                },
                "code": {
                    "$id": "#/properties/code",
                    "type": "string"
                },
                "uom": {
                    "$id": "#/properties/uom",
                    "type": ["string", "null"]
                },
                "active": {
                    "$id": "#/properties/active",
                    "type": "boolean"
                }
            }
        }
    }
}

...