File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,11 @@ export function validateSchemasSpec(schemasSpec) {
39
39
const newSchemasSpec = new SchemasSpec ( )
40
40
newSchemasSpec . data = schemasSpec
41
41
return [ newSchemasSpec , [ ] ]
42
- } else if ( 'version' in schemasSpec || 'path' in schemasSpec || 'libraries' in schemasSpec ) {
43
- return [ convertOldSpecToSchemasSpec ( schemasSpec ) , [ ] ]
44
42
} else {
45
43
return [ null , [ generateIssue ( 'invalidSchemaSpecification' , { spec : JSON . stringify ( schemasSpec ) } ) ] ]
46
44
}
47
45
}
48
46
49
- function convertOldSpecToSchemasSpec ( oldSpec ) {
50
- const newSpec = new SchemasSpec ( )
51
- // TODO: implement
52
- return newSpec
53
- }
54
-
55
47
export function parseSchemasSpec ( hedVersion ) {
56
48
const schemasSpec = new SchemasSpec ( )
57
49
const processVersion = asArray ( hedVersion )
@@ -120,11 +112,3 @@ function splitLibraryAndVersion(schemaVersion, originalVersion) {
120
112
}
121
113
return [ [ library , version ] , [ ] ]
122
114
}
123
-
124
- export function validateSchemaSpec ( schemaSpec ) {
125
- // ToDO: implement
126
- if ( ! ( schemaSpec instanceof SchemaSpec ) ) {
127
- return [ null , [ generateIssue ( 'invalidSchemaSpecification' , { spec : JSON . stringify ( schemaSpec ) } ) ] ]
128
- }
129
- return [ schemaSpec , [ ] ]
130
- }
You can’t perform that action at this time.
0 commit comments