Skip to content

Commit 2411c1a

Browse files
committed
Remove JSON format and related accessors
Remove the JSON enum entry, the corresponding _Path JSON mapping, and the ModelFile.json property from linkml_model/linkml_files.py. This cleans up deprecated/duplicate JSON-specific symbols in favor of the existing JSONLD/JSON Schema representations and simplifies the set of supported formats.
1 parent fcc6d78 commit 2411c1a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

linkml_model/linkml_files.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class Format(_AutoName):
3535
"""LinkML package formats"""
3636
EXCEL = auto()
3737
GRAPHQL = auto()
38-
JSON = auto()
3938
JSONLD = auto()
4039
JSON_SCHEMA = auto()
4140
NATIVE_JSONLD = auto()
@@ -62,7 +61,6 @@ class _Path:
6261
"""LinkML Relative paths — maps each Format to its directory and file extension."""
6362
EXCEL = _PathInfo("excel", "xlsx")
6463
GRAPHQL = _PathInfo("graphql", "graphql")
65-
JSON = _PathInfo("json", "json")
6664
JSONLD = _PathInfo("jsonld", "context.jsonld")
6765
JSON_SCHEMA = _PathInfo("jsonschema", "schema.json")
6866
NATIVE_JSONLD = _PathInfo("jsonld", "model.context.jsonld")
@@ -215,10 +213,6 @@ def __repr__(self):
215213
def graphql(self) -> ModelLoc:
216214
return ModelFile.ModelLoc(self._model, Format.GRAPHQL)
217215

218-
@property
219-
def json(self) -> ModelLoc:
220-
return ModelFile.ModelLoc(self._model, Format.JSON)
221-
222216
@property
223217
def jsonld(self) -> ModelLoc:
224218
return ModelFile.ModelLoc(self._model, Format.JSONLD)

0 commit comments

Comments
 (0)