Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "http://example.com/product.schema.json",
- "title": "Line",
- "description": "Defines the details and mathematical values of a line",
- "type": "object",
- "properties": {
- "line_id": {
- "type": "string"
- },
- "type": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "minLength": 1
- },
- "id": {
- "type": "number",
- "minimum": 0
- }
- },
- "required": ["name", "id"],
- "additionalProperties": false
- },
- "model": {
- "description": "Info on the specific line",
- "type": "object",
- "properties": {
- "breaking_strain": {
- "type": "object",
- "properties": {
- "metric": {
- "type": "number"
- },
- "imperial": {
- "type": "number"
- }
- },
- "anyOf": [
- {
- "required": ["metric"]
- },
- {
- "required": ["imperial"]
- }
- ]
- },
- "colour": {
- "type": "string",
- "minLength": 1
- },
- "name": {
- "type": "string",
- "minLength": 1
- },
- "brand": {
- "type": "string",
- "minLength": 1
- }
- },
- "required": ["breaking_strain", "name", "brand"],
- "additionalProperties": false
- },
- "calibration": {
- "type": "object",
- "properties": {
- "effective_diameter": {
- "type": "number",
- "exclusiveMinimum": 0
- },
- "components": {
- "type": "object",
- "properties": {
- "length": {
- "type": "number",
- "exclusoveMinimum": 0
- },
- "reel_id": {
- "type": "string"
- },
- "stated_diameter": {
- "type": "number"
- },
- "backing": {
- "type": "object",
- "properties": {
- "length": {
- "type": "number"
- },
- "effective_diameter": {
- "type": "number"
- },
- "line_id": {
- "type": "number"
- }
- },
- "required": ["length", "effective_diameter", "line_id"],
- "additionalProperties": false
- }
- },
- "required": ["length", "reel_id", "stated_diameter"],
- "additionalProperties": false
- }
- },
- "required": ["effective_diameter", "components"]
- }
- },
- "required": ["type", "model", "calibration"],
- "additionalProperties": false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement