File tree Expand file tree Collapse file tree 2 files changed +36
-10
lines changed Expand file tree Collapse file tree 2 files changed +36
-10
lines changed Original file line number Diff line number Diff line change 5252 },
5353 "variant": {
5454 "description": "Defined if G/M Codes are for specific MTB/3DP Variant. (Must be lower case, 3-8 characters)",
55- "type": "string",
56- "minLength": 3,
57- "maxLength": 8,
58- "pattern": "[A-Za-z0-9]"
55+ "type": "object",
56+ "properties": {
57+ "name": {
58+ "type": "string",
59+ "minLength": 3,
60+ "maxLength": 8,
61+ "pattern": "[a-z0-9]"
62+ },
63+ "remove": {
64+ "type": "array",
65+ "items": {
66+ "type": "string"
67+ },
68+ "uniqueItems": true
69+ }
70+ }
5971 },
6072 "codes": {
6173 "description": "Individual G/M Codes",
Original file line number Diff line number Diff line change 1- [ !NPM Version] ( https://badgen.net/npm/v/@appliedengdesign/cnccodes-json-schema ) [ !NPM DL] ( https://badgen.net/npm/dt/@appliedengdesign/cnccodes-json-schema ) [ ![ MIT License] ( https://badgen.net/badge/license/MIT )] ( https://opensource.org/licenses/MIT )
1+ [ ![ NPM Version] ( https://badgen.net/npm/v/@appliedengdesign/cnccodes-json-schema )] ( https://www.npmjs.com/package/@appliedengdesign/cnccodes-json-schema ) [ ![ NPM DL] ( https://badgen.net/npm/dt/@appliedengdesign/cnccodes-json-schema )] ( https://www.npmjs.com/package /@appliedengdesign/cnccodes-json-schema) [ ![ MIT License] ( https://badgen.net/badge/license/MIT )] ( https://opensource.org/licenses/MIT )
22
33[ ![ Follow @appliedengdesign ] ( https://badgen.net/twitter/follow/appliedengdes )] ( https://twitter.com/appliedengdes )
44
55# CNCCodes JSON Schema
66
77This project is a schema definition for using JSON to store description and usage information about G & M codes. It was developed out of a necessity for [ G-Code Reference] ( https://github.com/appliedengdesign/gcode-reference ) . It will be updated as the needs arise for the various types of G/M codes and various Machine Tools or 3D Printers.
88
9- Latest Draft Version: 2022-07
9+ Latest NPM Version: v0.3.0
10+
11+ Latest Draft Schema Version: 2022-07
1012
1113Previous Versions: [ 2022-06] ( https://appliedengdesign.github.io/cnccodes-json-schema/draft/2022-06/schema )
1214
@@ -67,10 +69,22 @@ Previous Versions: [2022-06](https://appliedengdesign.github.io/cnccodes-json-sc
6769 },
6870 "variant" : {
6971 "description" : " Defined if G/M Codes are for specific MTB/3DP Variant. (Must be lower case, 3-8 characters)" ,
70- "type" : " string" ,
71- "minLength" : 3 ,
72- "maxLength" : 8 ,
73- "pattern" : " [A-Za-z0-9]"
72+ "type" : " object" ,
73+ "properties" : {
74+ "name" : {
75+ "type" : " string" ,
76+ "minLength" : 3 ,
77+ "maxLength" : 8 ,
78+ "pattern" : " [a-z0-9]"
79+ },
80+ "remove" : {
81+ "type" : " array" ,
82+ "items" : {
83+ "type" : " string"
84+ },
85+ "uniqueItems" : true
86+ }
87+ }
7488 },
7589 "codes" : {
7690 "description" : " Individual G/M Codes" ,
You can’t perform that action at this time.
0 commit comments