Skip to content

Instantly share code, notes, and snippets.

@0xm1kr
Created September 25, 2020 00:15
Show Gist options
  • Save 0xm1kr/c2bd63858b59b1291ea1d093e5c9cacf to your computer and use it in GitHub Desktop.
Save 0xm1kr/c2bd63858b59b1291ea1d093e5c9cacf to your computer and use it in GitHub Desktop.
WPQ Schema
{
"type": "object",
"allOf": [
{
"type": "object",
"title": "General Information",
"required": [
"user",
"procedure",
"expires"
],
"properties": {
"user": {
"title": "Person",
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"name": {
"type": "string"
},
"avatar": {
"type": "string"
},
"employeeId": {
"type": "string"
},
"stamp": {
"type": "string"
}
},
"x-class": "col-sm-6",
"x-fromUrl": "users?search=%7B%22text%22%3A%20%22{q}%22%2C%20%22fields%22%3A%20%5B%22fields%22%5D%7D&filter={context.userFilter}",
"x-itemKey": "uid",
"x-itemTitle": "name",
"x-itemsProp": "items",
"x-itemIcon": "avatar"
},
"employee-id": {
"title": "ID Number",
"type": "string",
"readOnly": true,
"x-class": "col-sm-3"
},
"stamp": {
"title": "Stamp",
"type": "string",
"readOnly": true,
"x-class": "col-sm-3"
},
"procedure": {
"title": "WPS Followed",
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"name": {
"type": "string"
}
},
"x-fromUrl": "procedures?search=%7B%22text%22%3A%20%22{q}%22%2C%20%22fields%22%3A%20%5B%22name%22%5D%7D",
"x-itemsProp": "items",
"x-itemTitle": "name",
"x-itemKey": "name",
"x-class": "col-sm-6"
},
"fields.joint-type": {
"title": "Joint Type",
"type": "string",
"x-class": "col-sm-3"
},
"fields.date-welded": {
"title": "Date",
"type": "string",
"format": "date",
"x-class": "col-sm-3"
},
"fields.base-material-from": {
"type": "object",
"x-display": "custom-explorer",
"x-title": "Base Material(s) Welded",
"x-itemTitle": "name",
"x-endpoint": "base-materials",
"x-filterSchema": "/artifacts/filter/base-material.json",
"x-searchKeys": [
"name",
"typeGrade",
"pNumber"
],
"properties": {
"name": {
"type": "string",
"readOnly": true,
"x-display": "hidden"
},
"specification": {
"type": "string",
"title": "Specification"
},
"typeGrade": {
"type": "string",
"title": "Type or Grade"
},
"pNumber": {
"type": "string",
"title": "P Number"
},
"groupNumber": {
"type": "string",
"title": "Group Number"
},
"uns": {
"type": "string",
"title": "UNS"
},
"composition": {
"type": "string",
"title": "Composition"
},
"productForm": {
"type": "string",
"title": "Product Form"
},
"ksi": {
"type": "string",
"title": "Tensile Strength (ksi)"
},
"mpa": {
"type": "string",
"title": "Tensile Strength (mpa)"
}
},
"x-class": "col-sm-3"
},
"fields.base-material-to": {
"type": "object",
"x-display": "custom-explorer",
"x-title": "Base Material(s) Welded",
"x-itemTitle": "name",
"x-endpoint": "base-materials",
"x-filterSchema": "/artifacts/filter/base-material.json",
"x-searchKeys": [
"name",
"typeGrade",
"pNumber"
],
"properties": {
"name": {
"type": "string",
"readOnly": true,
"x-display": "hidden"
},
"specification": {
"type": "string",
"title": "Specification"
},
"typeGrade": {
"type": "string",
"title": "Type or Grade"
},
"pNumber": {
"type": "string",
"title": "P Number"
},
"groupNumber": {
"type": "string",
"title": "Group Number"
},
"uns": {
"type": "string",
"title": "UNS"
},
"composition": {
"type": "string",
"title": "Composition"
},
"productForm": {
"type": "string",
"title": "Product Form"
},
"ksi": {
"type": "string",
"title": "Tensile Strength (ksi)"
},
"mpa": {
"type": "string",
"title": "Tensile Strength (mpa)"
}
},
"x-class": "col-sm-3"
},
"fields.test-type": {
"title": "Test Type",
"type": "string",
"x-class": "col-sm-3"
},
"fields.thickness": {
"title": "Thickness",
"type": "string",
"x-class": "col-sm-3"
}
}
},
{
"type": "object",
"title": "Testing Variables & Qualification Limits",
"x-class": "table-layout",
"properties": {
"weld-process-header-1": {
"type": "string",
"title": "Welding Process 1",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-welding-process-1": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-welding-process-1": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"weld-process-header-2": {
"type": "string",
"title": "Welding Process 2",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-welding-process-2": {
"type": "string",
"title": "Actual Values",
"x-fromUrl": "files?filter=%7B%22type%22:%7B%22in%22:[%22{context.fileType}%22]%7D%7D",
"x-itemKey": "name",
"x-itemTitle": "name",
"x-itemsProp": "items",
"x-class": "col-sm-3"
},
"fields.RQ-welding-process-2": {
"type": "string",
"title": "Range Qualified",
"x-fromUrl": "files?filter=%7B%22type%22:%7B%22in%22:[%22{context.fileType}%22]%7D%7D",
"x-itemKey": "name",
"x-itemTitle": "name",
"x-itemsProp": "items",
"x-class": "col-sm-3"
},
"type-header": {
"type": "string",
"title": "Type Used",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-slots": {
"after": "ie. manual, semi-automatic"
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-type-used": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-type-used": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"backing-header-1": {
"type": "string",
"title": "Backing Process 1",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-backing-1": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-backing-1": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"backing-header-2": {
"type": "string",
"title": "Backing Process 2",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-backing-2": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-backing-2": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"fields.plate-pipe": {
"type": "string",
"title": " ",
"enum": [
"plate",
"pipe"
],
"x-display": "radio",
"x-class": "col-sm-6 grey lighten-5",
"x-props": {
"row": true
}
},
"fields.AV-plate-pipe": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-plate-pipe": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"p-number-to-pnumber-header": {
"type": "string",
"title": "Base Metal P Number to P Number",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-p-number": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3",
"readOnly": true
},
"fields.RQ-p-number": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"filler-metal-spec-header": {
"type": "string",
"title": "Filler metal or electrode specification(s) (SFA) (info. only)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-filler-metal-spec": {
"type": "string",
"title": "Specification",
"x-class": "col-sm-6",
"readOnly": true
},
"filler-metal-class-header": {
"type": "string",
"title": "Filler metal or electrode classification(s) (info. only)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-filler-metal": {
"type": "object",
"x-endpoint": "filler-materials",
"x-filterSchema": "/artifacts/filter/filler-material.json",
"x-display": "custom-explorer",
"x-title": "Filler Material",
"x-itemTitle": "classification",
"x-searchKeys": [
"classification",
"specification",
"fNumber",
"aNumber"
],
"properties": {
"classification": {
"type": "string",
"title": "Classification"
},
"specification": {
"type": "string",
"title": "Specification"
},
"fNumber": {
"type": "string",
"title": "F Number"
},
"aNumber": {
"type": "string",
"title": "A Number"
},
"uns": {
"type": "string",
"title": "UNS"
},
"type": {
"type": "string",
"title": "Type"
}
},
"x-class": "col-sm-6"
},
"filler-metal-f-number-header": {
"type": "string",
"title": "Filler metal F-Number(s)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-filler-metal-f-number": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-6",
"readOnly": true
},
"consumable-insert-header": {
"type": "string",
"title": "Consumable insert (GTAW or PAW)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-consumable-insert": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-consumable-insert": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"filler-metal-product-form-header": {
"type": "string",
"title": "Filler Metal Product Form (QW-404.23) (GTAW or PAW)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-filler-metal-product-form": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-filler-metal-product-form": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"deposit-thickness-header": {
"type": "string",
"title": "Deposit thickness for each process",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-12 grey lighten-5"
},
"process-1-header": {
"type": "string",
"title": "Process 1",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-2 grey lighten-5"
},
"fields.deposit-process-1": {
"type": "string",
"title": "Deposit Process",
"x-class": "col-sm-2"
},
"fields.process-1-3-layers": {
"type": "boolean",
"title": "3 Layers min.",
"x-display": "switch",
"x-class": "col-sm-2"
},
"fields.AV-process-1-thickness": {
"type": "string",
"title": "Actual Value",
"x-class": "col-sm-3"
},
"fields.RQ-process-1-thickness": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"process-2-header": {
"type": "string",
"title": "Process 1",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-2 grey lighten-5"
},
"fields.deposit-process-2": {
"type": "string",
"title": "Deposit Process",
"x-class": "col-sm-2"
},
"fields.process-2-3-layers": {
"type": "boolean",
"title": "3 Layers min.",
"x-display": "switch",
"x-class": "col-sm-2"
},
"fields.AV-process-2-thickness": {
"type": "string",
"title": "Actual Value",
"x-class": "col-sm-3"
},
"fields.RQ-process-2-thickness": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"positions-header": {
"type": "string",
"title": "Position(s)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-position": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-position": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"v-progression-header": {
"type": "string",
"title": "Vertical progression (uphill or downhill)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-vertical-progression": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-vertical-progression": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"type-fuel-gas-header": {
"type": "string",
"title": "Type of fuel gas (OFW)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-type-fuel-gas": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-type-fuel-gas": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"v-backing-gas-header": {
"type": "string",
"title": "Use of backing gas (GTAW, PAW, GMAW)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-backing-gas": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-backing-gas": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"transfer-mode-header": {
"type": "string",
"title": "Transfer mode (spray, globular, or pulse to short circuit-GMAW)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-transfer-mode": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-transfer-mode": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
},
"gtaw-current-header": {
"type": "string",
"title": "GTAW current type and polarity (AC, DCEP, DCEN)",
"readOnly": true,
"x-props": {
"hide-details": true
},
"x-class": "col-sm-6 grey lighten-5"
},
"fields.AV-gtaw-current": {
"type": "string",
"title": "Actual Values",
"x-class": "col-sm-3"
},
"fields.RQ-gtaw-current": {
"type": "string",
"title": "Range Qualified",
"x-class": "col-sm-3"
}
}
},
{
"type": "object",
"title": "Notes",
"properties": {
"fields.notes": {
"type": "string",
"title": " ",
"x-display": "textarea",
"x-class": "col-sm-12"
}
}
},
{
"type": "object",
"title": "Results",
"properties": {
"fields.visual-examination": {
"type": "string",
"title": "Visual examination of completed weld (QW-302.4)",
"x-class": "col-sm-8"
},
"fields.results": {
"type": "array",
"title": " ",
"maxItems": 6,
"items": {
"type": "object",
"required": [
"type",
"result"
],
"properties": {
"results-type": {
"type": "string",
"title": "Type",
"x-class": "col-sm-6"
},
"results-result": {
"type": "string",
"title": "Result",
"x-class": "col-sm-6"
}
}
}
},
"fields.alternative-examination": {
"type": "string",
"title": "Alternative volumetric examination results",
"x-class": "col-sm-8"
},
"fields.alt-results": {
"type": "string",
"title": " ",
"enum": [
"RT",
"UT"
],
"x-display": "radio",
"x-class": "col-sm-4",
"x-props": {
"row": true
}
},
"fields.fillet-weld-fracture-test": {
"type": "string",
"title": "Fillet weld - fracture test (QW-181.2)",
"x-class": "col-sm-8"
},
"fields.fillet-welds-plate": {
"type": "boolean",
"title": "Fillet welds in plate [QW-462.4(b)]",
"x-class": "col-sm-4"
},
"fields.length-percent-defect": {
"type": "string",
"title": "Length and percent of defects",
"x-class": "col-sm-8"
},
"fields.fillet-welds-pipe": {
"type": "boolean",
"title": "Fillet welds in pipe [QW-462.4(c)]",
"x-class": "col-sm-4"
},
"fields.macro-examination": {
"type": "string",
"title": "Macro examination (QW-184)",
"x-class": "col-sm-4"
},
"fields.fillet-size-1": {
"type": "string",
"title": "Fillet size 1 (in.)",
"x-class": "col-sm-2"
},
"fields.fillet-size-2": {
"type": "string",
"title": "Fillet size 2 (in.)",
"x-class": "col-sm-2"
},
"fields.concavity-convexity": {
"type": "string",
"title": "Concavity or convexity (in.)",
"x-class": "col-sm-4"
},
"fields.other-tests": {
"type": "string",
"title": "Other tests",
"x-class": "col-sm-12"
},
"fields.film-evaluated-by": {
"type": "string",
"title": "Film or Specimens evaluated by",
"x-class": "col-sm-6"
},
"fields.company": {
"type": "string",
"title": "Company",
"x-class": "col-sm-6"
},
"fields.mechanical-tests-conducted-by": {
"type": "string",
"title": "Mechanical tests conducted by",
"x-class": "col-sm-6"
},
"fields.lab-test-number": {
"type": "string",
"title": "Lab Test No.",
"x-class": "col-sm-6"
}
}
},
{
"type": "object",
"title": "Certification & Signatures",
"properties": {
"fields.welding-supervised-by": {
"title": "Welding supervised by",
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"name": {
"type": "string"
},
"avatar": {
"type": "string"
},
"employeeId": {
"type": "string"
},
"stamp": {
"type": "string"
}
},
"x-class": "col-sm-6",
"x-fromUrl": "users?search=%7B%22text%22%3A%20%22{q}%22%2C%20%22fields%22%3A%20%5B%22fields%22%5D%7D",
"x-itemKey": "uid",
"x-itemTitle": "name",
"x-itemsProp": "items",
"x-itemIcon": "avatar"
},
"fields.organization": {
"title": "Organization",
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"name": {
"type": "string"
}
},
"x-class": "col-sm-6",
"x-fromUrl": "companies?filter=%7B%20%22fields%22:%20%7B%20%22jsonHas%22:%20%7B%22type%22:%20%7B%22name%22:%20%22Client%22%7D%20%7D%7D%7D",
"x-itemKey": "uid",
"x-itemTitle": "name",
"x-itemsProp": "items"
},
"fields.date-certified": {
"title": "Date",
"type": "string",
"format": "date",
"x-class": "col-sm-6"
},
"fields.certified-by": {
"title": "Certified by",
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"name": {
"type": "string"
},
"avatar": {
"type": "string"
},
"employeeId": {
"type": "string"
},
"stamp": {
"type": "string"
}
},
"x-class": "col-sm-6",
"x-fromUrl": "users?search=%7B%22text%22%3A%20%22{q}%22%2C%20%22fields%22%3A%20%5B%22fields%22%5D%7D",
"x-itemKey": "uid",
"x-itemTitle": "name",
"x-itemsProp": "items",
"x-itemIcon": "avatar"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment