Please provide additional information about your article/manuscript below. If DOI was provided in the initial step of the submission, the metadata associated with that DOI was found and used to prepopulatethis form.
Fields that are not editable were populated using metadata associated with the provided DOI.
", - "$comment": "These properties are intended to be displayed in an Alpaca form", - "properties": { - "title": { - "$ref": "global.json#/properties/title" - }, - "journal-title": { - "$ref": "global.json#/properties/journal-title" - }, - "volume": { - "$ref": "global.json#/properties/volume" - }, - "issue": { - "$ref": "global.json#/properties/issue" - }, - "issns": { - "$ref": "global.json#/properties/issns" - }, - "publisher": { - "$ref": "global.json#/properties/publisher" - }, - "publicationDate": { - "$ref": "global.json#/properties/publicationDate" - }, - "abstract": { - "$ref": "global.json#/properties/abstract" - }, - "authors": { - "$ref": "global.json#/properties/authors" - }, - "under-embargo": { - "$ref": "global.json#/properties/under-embargo" - }, - "Embargo-end-date": { - "$ref": "global.json#/properties/Embargo-end-date" - } - }, - "dependencies": { - "Embargo-end-date": ["under-embargo"] - }, - "options": { - "$ref": "global.json#/options" - } - } - } -} diff --git a/pass-core-main/src/test/resources/schemas/jhu/example_merged_basic.json b/pass-core-main/src/test/resources/schemas/jhu/example_merged_basic.json deleted file mode 100644 index 2ce9b49a..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/example_merged_basic.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "a": "1", - "b": "2", - "c": "3", - "d": "4", - "x": { - "title": "x", - "$comment": "displays nicely", - "description": "an awesome letter", - "type": "letter" - }, - "array": ["a", "b", "c", "d", "e", "f"], - "complexarray": [{"a": ["b", {"c": "d"}]}, "e", "f", {"g": "h"}], - "aa": "b", - "cc": ["d", "e", "f", "g"], - "h": { - "i": "j", - "k": ["l", "m", "m'"], - "n": { - "o": "p", - "q": "r" - } - } -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/example_merged_dereferenced.json b/pass-core-main/src/test/resources/schemas/jhu/example_merged_dereferenced.json deleted file mode 100644 index d14af742..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/example_merged_dereferenced.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "a": "1", - "b": "2", - "c": "3", - "d": "4", - "x": { - "title": "x", - "$comment": "displays nicely", - "description": "an awesome letter", - "type": "letter" - }, - "array": ["a", "b", "c", "d", "e", "f"], - "complexarray": [{"a": ["b", {"c": "d"}]}, "e", "f", {"g": "h"}], - "aa": "b", - "cc": ["d", "e", "f", "g"], - "h": { - "i": "j", - "k": ["l", "m", "m'"], - "n": { - "o": "p", - "q": "r" - } - }, - "copySchemaName": "http://example.org/metadata-schemas/schemas/jhu/schema_to_dereference", - "schema1_title": "X", - "schema2_x": { - "title": "x", - "description": "an awesome letter", - "$comment": "displays nicely", - "type": "letter" - }, - "schema3_array": ["c", "d", "e"], - "schema4_complexarray": ["e", "f", {"g": "h"}], - "schema4_hk": ["l", "m", "m'"] -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/expected_jscholarship_common_merge.json b/pass-core-main/src/test/resources/schemas/jhu/expected_jscholarship_common_merge.json deleted file mode 100644 index 459cc13a..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/expected_jscholarship_common_merge.json +++ /dev/null @@ -1,704 +0,0 @@ -[ - { - "allOf": [ - { - "$id": "https://eclipse-pass.github.io/pass-metadata-schemas/schemas/jhu/global.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "additionalProperties": false, - "dependencies": { - "Embargo-end-date": [ - "under-embargo" - ] - }, - "description": "Defines all possible metadata fields for PASS deposit", - "options": { - "fields": { - "Embargo-end-date": { - "dependencies": { - "under-embargo": true - }, - "fieldClass": "date-time-picker", - "helper": "After the embargo end date, your submission manuscripts or article can be made public. If this publication is not under embargo, please leave this field blank.", - "helpersPosition": "above", - "inputType": "date", - "label": "Embargo End Date", - "order": 12, - "picker": { - "allowInputToggle": true, - "format": "MM/DD/YY" - }, - "placeholder": "dd/mm/yyyy", - "type": "date", - "validate": true - }, - "abstract": { - "fieldClass": "clearfix", - "hidden": false, - "label": "Abstract (optional)", - "order": 9, - "placeholder": "Enter abstract", - "type": "textarea" - }, - "authors": { - "hidden": false, - "items": { - "fields": { - "author": { - "fieldClass": "body-text col-6 pull-left pl-0", - "label": "Name" - }, - "orcid": { - "fieldClass": "body-text col-6 pull-left pr-0", - "label": "ORCiD" - } - }, - "label": "" - }, - "label": "Deposit requirements for JH's institutional repository JScholarship
", - "type": "object" - } - ], - "definitions": { - "form": { - "$comment": "These properties are intended to be displayed in an Alpaca form", - "dependencies": { - "Embargo-end-date": [ - "under-embargo" - ] - }, - "options": { - "fields": { - "Embargo-end-date": { - "dependencies": { - "under-embargo": true - }, - "fieldClass": "date-time-picker", - "helper": "After the embargo end date, your submission manuscripts or article can be made public. If this publication is not under embargo, please leave this field blank.", - "helpersPosition": "above", - "inputType": "date", - "label": "Embargo End Date", - "order": 12, - "picker": { - "allowInputToggle": true, - "format": "MM/DD/YY" - }, - "placeholder": "dd/mm/yyyy", - "type": "date", - "validate": true - }, - "abstract": { - "fieldClass": "clearfix", - "hidden": false, - "label": "Abstract (optional)", - "order": 9, - "placeholder": "Enter abstract", - "type": "textarea" - }, - "authors": { - "hidden": false, - "items": { - "fields": { - "author": { - "fieldClass": "body-text col-6 pull-left pl-0", - "label": "Name" - }, - "orcid": { - "fieldClass": "body-text col-6 pull-left pr-0", - "label": "ORCiD" - } - }, - "label": "" - }, - "label": "Deposit requirements for JH's institutional repository JScholarship
", - "type": "object" - }, - "options": { - "fields": { - "Embargo-end-date": { - "dependencies": { - "under-embargo": true - }, - "fieldClass": "date-time-picker", - "helper": "After the embargo end date, your submission manuscripts or article can be made public. If this publication is not under embargo, please leave this field blank.", - "helpersPosition": "above", - "inputType": "date", - "label": "Embargo End Date", - "order": 12, - "picker": { - "allowInputToggle": true, - "format": "MM/DD/YY" - }, - "placeholder": "dd/mm/yyyy", - "type": "date", - "validate": true - }, - "abstract": { - "fieldClass": "clearfix", - "hidden": false, - "label": "Abstract (optional)", - "order": 9, - "placeholder": "Enter abstract", - "type": "textarea" - }, - "authors": { - "hidden": false, - "items": { - "fields": { - "author": { - "fieldClass": "body-text col-6 pull-left pl-0", - "label": "Name" - }, - "orcid": { - "fieldClass": "body-text col-6 pull-left pr-0", - "label": "ORCiD" - } - }, - "label": "" - }, - "label": "Deposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "$ref": "global.json#/properties/authors" - } - }, - "required": ["authors"] - }, - "options": { - "$ref": "global.json#/options" - } - }, - "allOf": [ - { - "$ref": "global.json#" - }, - { - "$ref": "#/definitions/form" - } - ] -} diff --git a/pass-core-main/src/test/resources/schemas/jhu/nihms.json b/pass-core-main/src/test/resources/schemas/jhu/nihms.json deleted file mode 100644 index 64ef1a6c..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/nihms.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "title": "NIHMS schema", - "description": "NIHMS-specific metadata requirements", - "$id": "https://eclipse-pass.github.io/pass-metadata-schemas/schemas/jhu/nihms.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "definitions": { - "form": { - "title": "NIH Manuscript Submission System (NIHMS)The following metadata fields will be part of the NIHMS submission.
", - "type": "object", - "properties": { - "journal-NLMTA-ID": { - "$ref": "global.json#/properties/journal-NLMTA-ID" - }, - "issns": { - "$ref": "global.json#/properties/issns" - } - } - }, - "prerequisites": { - "anyOf": [ - {"$ref": "#/definitions/nlmta_present"}, - {"$ref": "#/definitions/issn_present"} - ] - }, - "issn_present": { - "type": "object", - "properties": { - "issns": { - "type": "array", - "contains": { - "type": "object", - "required": [ - "issn", - "pubType" - ], - "properties": { - "issn": { - "type": "string" - }, - "pubType": { - "type": "string" - } - } - } - } - } - }, - "nlmta_present": { - "type": "object", - "required": [ - "journal-NLMTA-ID" - ], - "properties": { - "journal-NLMTA-ID": { - "$ref": "global.json#/properties/journal-NLMTA-ID" - } - } - }, - "options": { - "$ref": "global.json#/options" - } - }, - "allOf": [ - { - "$ref": "global.json#" - }, - { - "$ref": "#/definitions/prerequisites" - }, - { - "$ref": "#/definitions/form" - } - ] -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema1.json b/pass-core-main/src/test/resources/schemas/jhu/schema1.json deleted file mode 100644 index 19d4492c..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema1.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/foo", - "title": "foo", - "description": "foo schema", - "$comment": "one", - "a": "1", - "x": { - "title": "X", - "description": "a letter", - "$comment": "displays good", - "type": "letter" - }, - "array": ["a", "b", "c"], - "aa": "b", - "cc": ["d", "e"] -} diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema2.json b/pass-core-main/src/test/resources/schemas/jhu/schema2.json deleted file mode 100644 index 5c3101c7..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema2.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/schema2", - "title": "bar", - "description": "bar schema", - "$comment": "two", - "b": "2", - "x": { - "title": "x", - "description": "an awesome letter", - "$comment": "displays nicely", - "type": "letter" - }, - "array": ["b", "c", "d"], - "complexarray": [{"a": ["b", {"c": "d"}]}, "e"], - "aa": "b", - "cc": ["e", "f", "g"] -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema3.json b/pass-core-main/src/test/resources/schemas/jhu/schema3.json deleted file mode 100644 index 641405a4..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema3.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/schema3", - "title": "test", - "description": "test schema", - "$comment": "three", - "c": "3", - "array": ["c", "d", "e"], - "complexarray": [{"a": ["b", {"c": "d"}]}, "f"], - "h": { - "i": "j", - "k": ["l", "m"], - "n": { - "o": "p" - } - } -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema4.json b/pass-core-main/src/test/resources/schemas/jhu/schema4.json deleted file mode 100644 index 4942ff5f..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema4.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/schema4", - "title": "example", - "description": "example schema", - "$comment": "four", - "d": "4", - "array": ["d", "e", "f"], - "complexarray": ["e", "f", {"g": "h"}], - "h": { - "k": ["l", "m", "m'"], - "n": { - "q": "r" - } - } -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema5.json b/pass-core-main/src/test/resources/schemas/jhu/schema5.json deleted file mode 100644 index 35219cdc..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema5.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/jhu/schema", - "$id": "http://example.org/example/schemas/schema4", - "cycleref": "#/cycleref", - "loop_ref": {"$ref": "schema6.json#/loopref"} -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema6.json b/pass-core-main/src/test/resources/schemas/jhu/schema6.json deleted file mode 100644 index 380b4420..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema6.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/jhu/schema_to_dereference", - "$id": "http://example.org/example/schemas/deref_err", - "loop_ref": {"$ref": "schema5.json#/loopref"} -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema_merge_conflict1.json b/pass-core-main/src/test/resources/schemas/jhu/schema_merge_conflict1.json deleted file mode 100644 index 19d4492c..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema_merge_conflict1.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/foo", - "title": "foo", - "description": "foo schema", - "$comment": "one", - "a": "1", - "x": { - "title": "X", - "description": "a letter", - "$comment": "displays good", - "type": "letter" - }, - "array": ["a", "b", "c"], - "aa": "b", - "cc": ["d", "e"] -} diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema_merge_conflict2.json b/pass-core-main/src/test/resources/schemas/jhu/schema_merge_conflict2.json deleted file mode 100644 index 1b1c1f03..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema_merge_conflict2.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/foo", - "title": "foo", - "description": "foo schema", - "$comment": "one", - "a": "1", - "x": { - "title": "X", - "description": "a letter", - "$comment": "displays good", - "type": "letter" - }, - "array": { - "title": "Not Array" - }, - "aa": "b", - "cc": ["d", "e"] -} diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema_to_deref.json b/pass-core-main/src/test/resources/schemas/jhu/schema_to_deref.json deleted file mode 100644 index dc4fa682..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema_to_deref.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu/schema_to_dereference", - "$id": "http://example.org/metadata-schemas/schemas/jhu/deref", - "copySchemaName": {"$ref": "#/$schema"}, - "schema1_title": {"$ref": "schema1.json#/x/title"}, - "schema2_x": {"$ref": "schema2.json#/x"}, - "schema3_array": {"$ref": "schema3.json#/array"}, - "schema4_complexarray": {"$ref": "schema4.json#/complexarray"}, - "schema4_hk": {"$ref": "schema4.json#/h/k"} -} \ No newline at end of file diff --git a/pass-core-main/src/test/resources/schemas/jhu/schema_to_deref_expected.json b/pass-core-main/src/test/resources/schemas/jhu/schema_to_deref_expected.json deleted file mode 100644 index 044672ef..00000000 --- a/pass-core-main/src/test/resources/schemas/jhu/schema_to_deref_expected.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu/schema_to_dereference", - "$id": "http://example.org/metadata-schemas/schemas/jhu/deref", - "copySchemaName": "http://example.org/metadata-schemas/schemas/jhu/schema_to_dereference", - "schema1_title": "X", - "schema2_x": { - "title": "x", - "description": "an awesome letter", - "$comment": "displays nicely", - "type": "letter" - }, - "schema3_array": ["c", "d", "e"], - "schema4_complexarray": ["e", "f", {"g": "h"}], - "schema4_hk": ["l", "m", "m'"] -} \ No newline at end of file diff --git a/pass-core-metadataschema-service/pom.xml b/pass-core-metadataschema-service/pom.xml deleted file mode 100644 index 84dabcb0..00000000 --- a/pass-core-metadataschema-service/pom.xml +++ /dev/null @@ -1,54 +0,0 @@ - -Please provide additional information about your article/manuscript below. If DOI was provided in the initial step of the submission, the metadata associated with that DOI was found and used to prepopulatethis form.
Fields that are not editable were populated using metadata associated with the provided DOI.
", - "$comment": "These properties are intended to be displayed in an Alpaca form", - "properties": { - "title": { - "$ref": "global.json#/properties/title" - }, - "journal-title": { - "$ref": "global.json#/properties/journal-title" - }, - "volume": { - "$ref": "global.json#/properties/volume" - }, - "issue": { - "$ref": "global.json#/properties/issue" - }, - "issns": { - "$ref": "global.json#/properties/issns" - }, - "publisher": { - "$ref": "global.json#/properties/publisher" - }, - "publicationDate": { - "$ref": "global.json#/properties/publicationDate" - }, - "abstract": { - "$ref": "global.json#/properties/abstract" - }, - "authors": { - "$ref": "global.json#/properties/authors" - }, - "under-embargo": { - "$ref": "global.json#/properties/under-embargo" - }, - "Embargo-end-date": { - "$ref": "global.json#/properties/Embargo-end-date" - } - }, - "dependencies": { - "Embargo-end-date": ["under-embargo"] - }, - "options": { - "$ref": "global.json#/options" - } - } - } -} diff --git a/pass-core-metadataschema-service/src/main/resources/schemas/jhu/global.json b/pass-core-metadataschema-service/src/main/resources/schemas/jhu/global.json deleted file mode 100644 index 3d2c8018..00000000 --- a/pass-core-metadataschema-service/src/main/resources/schemas/jhu/global.json +++ /dev/null @@ -1,333 +0,0 @@ -{ - "title": "JHU global schema", - "description": "Defines all possible metadata fields for PASS deposit", - "$id": "https://eclipse-pass.github.io/pass-metadata-schemas/schemas/jhu/global.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "required": [ - "$schema", - "title" - ], - "additionalProperties": false, - "properties": { - "$schema": { - "type": "string", - "title": "JSON schema", - "description": "The JSON schema that applies to the resulting metadata blob" - }, - "agreements": { - "type": "object", - "title": "Agreements to deposit conditions", - "description": "Maps repository keys to the text or links containing the agreements accepted by the submitter", - "$comment": "This was formerly known as 'embargo', available only for JScholarship metadata", - "patternProperties": { - "^.+$": { - "type": "string", - "title": "Agreement", - "description": "Text or link agreed to for the given repository key", - "$comment": "Example: {'jScholarship': 'http://example.org/agreementText'}" - } - } - }, - "abstract": { - "type": "string", - "title": "Abstract", - "description": "The abstract of the article or manuscript being submitted" - }, - "agent_information": { - "type": "object", - "title": "User agent (browser) information", - "description": "Contains the identity and version of the user's browser", - "properties": { - "name": { - "type": "string", - "title": "User agent (browser) name" - }, - "version": { - "type": "string", - "title": "User agent (browser) version" - } - } - }, - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": ["author"] - } - }, - "doi": { - "type": "string", - "pattern": "^10\\..+?/.+?$", - "title": "DOI of article", - "description": "The DOI of the individual article or manuscript submitted" - }, - "Embargo-end-date": { - "type": "string", - "format": "date", - "title": "Embargo end date", - "description": "Date at which the article or manuscript may be made public" - }, - "hints": { - "type": "object", - "title": "Hints provided by the UI to backend services", - "description": "Hints have semantics shared by the UI and the backend that are intended to influence the backend processing of the submission.", - "additionalProperties": false, - "properties": { - "collection-tags": { - "type": "array", - "uniqueItems": true, - "title": "Tags impacting the collection used by Deposit Services for deposit", - "items": { - "type": "string" - } - } - } - }, - "journal-NLMTA-ID": { - "type": "string", - "title": "NTMLA", - "description": "NLM identifier for a journal" - }, - "journal-title": { - "type": "string", - "title": "Journal title", - "description": "Title of the journal the individual article or manuscript was submitted to" - }, - "journal-title-short": { - "type": "string", - "title": "Short journal title", - "description": "Short journal title from CrossRef" - }, - "issue": { - "type": "string", - "title": "Journal issue", - "description": "Issue number of the journal this article or manuscript was submitted to" - }, - "issns": { - "type": "array", - "title": "ISSN information for the manuscript's journal", - "description": "List of ISSN numbers with optional publication type", - "uniqueItems": true, - "items": { - "type": "object", - "title": "ISSN info", - "properties": { - "issn": { - "type": "string", - "title": "ISSN " - }, - "pubType": { - "type": "string", - "title": "publication type", - "enum": ["Print", "Online"] - } - } - } - }, - "publisher": { - "type": "string", - "title": "Publisher", - "description": "Publisher of the journal this article or manuscript was submitted to" - }, - "publicationDate": { - "type": "string", - "title": "Publication Date", - "description": "Publication date of the journal or article this manuscript was submitted to", - "$comment": "This was formerly date-time format, but that appears too precise for values like 'Summer 2018'" - }, - "title": { - "type": "string", - "title": "Article / Manuscript Title", - "description": "The title of the individual article or manuscript that was submitted" - }, - "under-embargo": { - "type": "string", - "title": "Under Embargo", - "description": "Indicates wither the article or manuscript is under embargo", - "$comment": "This should probably be a boolean" - }, - "volume": { - "type": "string", - "title": "Journal Volume", - "description": "journal volume this article or manuscript was published in" - } - }, - "dependencies": { - "Embargo-end-date": ["under-embargo"] - }, - "options": { - "fields": { - "title": { - "type": "textarea", - "label": "Article / Manuscript Title", - "placeholder": "Enter the manuscript title", - "rows": 2, - "cols": 100, - "hidden": false, - "readonly": true, - "order": 1 - }, - "journal-title": { - "type": "text", - "label": "Journal Title", - "placeholder": "Enter the journal title", - "hidden": false, - "readonly": true, - "order": 2 - }, - "journal-NLMTA-ID": { - "type": "text", - "label": "Journal NLMTA ID", - "placeholder": "nlmta", - "readonly": true, - "order": 3 - }, - "volume": { - "type": "text", - "label": "Volume (optional)", - "placeholder": "Enter the volume", - "hidden": false, - "order": 4 - }, - "issue": { - "type": "text", - "label": "Issue (optional)", - "placeholder": "Enter issue", - "hidden": false, - "order": 5 - }, - "issns": { - "label": "Deposit requirements for InvenioRDM
", - "type": "object", - "properties": { - "authors": { - "$ref": "global.json#/properties/authors" - } - }, - "required": ["authors", "publicationDate"] - }, - "options": { - "$ref": "global.json#/options" - } - }, - "allOf": [ - { - "$ref": "global.json#" - }, - { - "$ref": "#/definitions/form" - } - ] -} diff --git a/pass-core-metadataschema-service/src/main/resources/schemas/jhu/jscholarship.json b/pass-core-metadataschema-service/src/main/resources/schemas/jhu/jscholarship.json deleted file mode 100644 index 887106ad..00000000 --- a/pass-core-metadataschema-service/src/main/resources/schemas/jhu/jscholarship.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "JScholarship schema", - "description": "JScholarship-specific metadata requirements", - "$id": "https://eclipse-pass.github.io/pass-metadata-schemas/schemas/jhu/jscholarship.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "definitions": { - "form": { - "title": "Johns Hopkins - JScholarshipDeposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "$ref": "global.json#/properties/authors" - } - }, - "required": ["authors", "publicationDate"] - }, - "options": { - "$ref": "global.json#/options" - } - }, - "allOf": [ - { - "$ref": "global.json#" - }, - { - "$ref": "#/definitions/form" - } - ] -} diff --git a/pass-core-metadataschema-service/src/main/resources/schemas/jhu/nihms.json b/pass-core-metadataschema-service/src/main/resources/schemas/jhu/nihms.json deleted file mode 100644 index 82080d27..00000000 --- a/pass-core-metadataschema-service/src/main/resources/schemas/jhu/nihms.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "title": "NIHMS schema", - "description": "NIHMS-specific metadata requirements", - "$id": "https://eclipse-pass.github.io/pass-metadata-schemas/schemas/jhu/nihms.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "required": [ - "journal-title" - ], - "definitions": { - "form": { - "title": "NIH Manuscript Submission System (NIHMS)The following metadata fields will be part of the NIHMS submission.
", - "type": "object", - "properties": { - "journal-NLMTA-ID": { - "$ref": "global.json#/properties/journal-NLMTA-ID" - }, - "issns": { - "$ref": "global.json#/properties/issns" - } - } - }, - "prerequisites": { - "anyOf": [ - {"$ref": "#/definitions/nlmta_present"}, - {"$ref": "#/definitions/issn_present"} - ] - }, - "issn_present": { - "type": "object", - "properties": { - "issns": { - "type": "array", - "contains": { - "type": "object", - "required": [ - "issn", - "pubType" - ], - "properties": { - "issn": { - "type": "string" - }, - "pubType": { - "type": "string" - } - } - } - } - } - }, - "nlmta_present": { - "type": "object", - "required": [ - "journal-NLMTA-ID" - ], - "properties": { - "journal-NLMTA-ID": { - "$ref": "global.json#/properties/journal-NLMTA-ID" - } - } - }, - "options": { - "$ref": "global.json#/options" - } - }, - "allOf": [ - { - "$ref": "global.json#" - }, - { - "$ref": "#/definitions/prerequisites" - }, - { - "$ref": "#/definitions/form" - } - ] -} diff --git a/pass-core-metadataschema-service/src/test/java/org/eclipse/pass/metadataschema/SchemaInstanceTest.java b/pass-core-metadataschema-service/src/test/java/org/eclipse/pass/metadataschema/SchemaInstanceTest.java deleted file mode 100644 index 804c93b1..00000000 --- a/pass-core-metadataschema-service/src/test/java/org/eclipse/pass/metadataschema/SchemaInstanceTest.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright 2022 Johns Hopkins University - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.eclipse.pass.metadataschema; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.yahoo.elide.RefreshableElide; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; -import org.mockito.Mockito; - -class SchemaInstanceTest { - - private ObjectMapper map; - - @BeforeEach - void setup() { - map = new ObjectMapper(); - } - - /* - * Sort schemas based on the following rules: If one schema is referenced by - * another in a $ref, then that schema appears before the other For schemas that - * are independent of one another, the one with the greatest number of form - * properties appears before those that have fewer. If two schemas have no - * dependencies and have the same number of properties, the one that appears - * first in the initial list will be first in the result. - */ - @Test - void testSort() throws JsonProcessingException { - String one = "{\r\n" + " \"$id\": \"http://example.org/schemas/one.json\",\r\n" - + " \"definitions\": {\r\n" + " \"form\": {\r\n" - + " \"properties\": {\r\n" + " \"foo\": \"bar\"\r\n" - + " }\r\n" + " }\r\n" + " }\r\n" + " }"; - - String two = "{\r\n" + " \"$id\": \"http://example.org/schemas/two.json\",\r\n" - + " \"definitions\": {\r\n" + " \"form\": {\r\n" - + " \"properties\": {\r\n" - + " \"foo\": {\"$ref\": \"one.json#/definitions/form/properties/foo\"},\r\n" - + " \"bar\": \"baz\",\r\n" - + " \"baz\": {\"$ref\": \"#/definitions/form/properties/bar\"}\r\n" - + " }\r\n" + " }\r\n" + " }\r\n" + " }"; - - String three = "{\r\n" + " \"$id\": \"http://example.org/schemas/three.json\",\r\n" - + " \"definitions\": {\r\n" + " \"form\": {\r\n" - + " \"properties\": {\r\n" - + " \"foo\": {\"$ref\": \"one.json#/definitions/form/properties/foo\"},\r\n" - + " \"bar\": {\"$ref\": \"two.json#/definitions/form/properties/foo\"},\r\n" - + " \"baz0\": \"value0\",\r\n" + " \"baz\": \"value\"\r\n" - + " }\r\n" + " }\r\n" + " }\r\n" + " }"; - - String four = "{\r\n" + " \"$id\": \"http://example.org/schemas/four.json\",\r\n" - + " \"definitions\": {\r\n" + " \"form\": {\r\n" - + " \"properties\": {\r\n" - + " \"foo2\": {\"$ref\": \"one.json#/definitions/form/properties/foo\"},\r\n" - + " \"bar2\": {\"$ref\": \"two.json#/definitions/form/properties/foo\"},\r\n" - + " \"baz\": \"value\"\r\n" + " }\r\n" + " }\r\n" - + " }\r\n" + " }"; - - String five = "{\r\n" + " \"$id\": \"http://example.org/schemas/five.json\",\r\n" - + " \"definitions\": {\r\n" + " \"form\": {\r\n" - + " \"properties\": {\r\n" + " \"one\": 1,\r\n" - + " \"two\": 2\r\n" + " }\r\n" + " }\r\n" + " }\r\n" - + " }"; - - String six = "{\r\n" + " \"$id\": \"http://example.org/schemas/six.json\",\r\n" - + " \"definitions\": {\r\n" + " \"form\": {\r\n" - + " \"properties\": {\r\n" + " \"one\": 1\r\n" - + " }\r\n" + " }\r\n" + " }\r\n" + " }"; - - String seven = "{\r\n" + " \"$id\": \"http://example.org/schemas/seven.json\"\r\n" + " }"; - - SchemaInstance schema1 = new SchemaInstance(map.readTree(one)); - SchemaInstance schema2 = new SchemaInstance(map.readTree(two)); - SchemaInstance schema3 = new SchemaInstance(map.readTree(three)); - SchemaInstance schema4 = new SchemaInstance(map.readTree(four)); - SchemaInstance schema5 = new SchemaInstance(map.readTree(five)); - SchemaInstance schema6 = new SchemaInstance(map.readTree(six)); - SchemaInstance schema7 = new SchemaInstance(map.readTree(seven)); - - ArrayListDeposit requirements for JH's institutional repository JScholarship
", - "type": "object" - } - ], - "definitions": { - "form": { - "$comment": "These properties are intended to be displayed in an Alpaca form", - "dependencies": { - "Embargo-end-date": [ - "under-embargo" - ] - }, - "options": { - "fields": { - "Embargo-end-date": { - "dependencies": { - "under-embargo": true - }, - "fieldClass": "date-time-picker", - "helper": "After the embargo end date, your submission manuscripts or article can be made public. If this publication is not under embargo, please leave this field blank.", - "helpersPosition": "above", - "inputType": "date", - "label": "Embargo End Date", - "order": 12, - "picker": { - "allowInputToggle": true, - "format": "MM/DD/YY" - }, - "placeholder": "dd/mm/yyyy", - "type": "date", - "validate": true - }, - "abstract": { - "fieldClass": "clearfix", - "hidden": false, - "label": "Abstract (optional)", - "order": 9, - "placeholder": "Enter abstract", - "type": "textarea" - }, - "authors": { - "hidden": false, - "items": { - "fields": { - "author": { - "fieldClass": "body-text col-6 pull-left pl-0", - "label": "Name" - }, - "orcid": { - "fieldClass": "body-text col-6 pull-left pr-0", - "label": "ORCiD" - } - }, - "label": "" - }, - "label": "Deposit requirements for JH's institutional repository JScholarship
", - "type": "object" - }, - "options": { - "fields": { - "Embargo-end-date": { - "dependencies": { - "under-embargo": true - }, - "fieldClass": "date-time-picker", - "helper": "After the embargo end date, your submission manuscripts or article can be made public. If this publication is not under embargo, please leave this field blank.", - "helpersPosition": "above", - "inputType": "date", - "label": "Embargo End Date", - "order": 12, - "picker": { - "allowInputToggle": true, - "format": "MM/DD/YY" - }, - "placeholder": "dd/mm/yyyy", - "type": "date", - "validate": true - }, - "abstract": { - "fieldClass": "clearfix", - "hidden": false, - "label": "Abstract (optional)", - "order": 9, - "placeholder": "Enter abstract", - "type": "textarea" - }, - "authors": { - "hidden": false, - "items": { - "fields": { - "author": { - "fieldClass": "body-text col-6 pull-left pl-0", - "label": "Name" - }, - "orcid": { - "fieldClass": "body-text col-6 pull-left pr-0", - "label": "ORCiD" - } - }, - "label": "" - }, - "label": "Deposit requirements for InvenioRDM
", - "type": "object", - "properties": { - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": [ - "author" - ] - } - } - }, - "required": [ - "authors", - "publicationDate" - ] - }, - "options": { - "fields": { - "title": { - "type": "textarea", - "label": "Article / Manuscript Title", - "placeholder": "Enter the manuscript title", - "rows": 2, - "cols": 100, - "hidden": false, - "readonly": true, - "order": 1 - }, - "journal-title": { - "type": "text", - "label": "Journal Title", - "placeholder": "Enter the journal title", - "hidden": false, - "readonly": true, - "order": 2 - }, - "journal-NLMTA-ID": { - "type": "text", - "label": "Journal NLMTA ID", - "placeholder": "nlmta", - "readonly": true, - "order": 3 - }, - "volume": { - "type": "text", - "label": "Volume (optional)", - "placeholder": "Enter the volume", - "hidden": false, - "order": 4 - }, - "issue": { - "type": "text", - "label": "Issue (optional)", - "placeholder": "Enter issue", - "hidden": false, - "order": 5 - }, - "issns": { - "label": "Deposit requirements for InvenioRDM
", - "type": "object", - "properties": { - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": [ - "author" - ] - } - } - }, - "required": [ - "authors", - "publicationDate" - ] - } - ] -} diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_deref.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_deref.json deleted file mode 100644 index 144f3ac6..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_deref.json +++ /dev/null @@ -1,589 +0,0 @@ -{ - "title": "JScholarship schema", - "description": "JScholarship-specific metadata requirements", - "$id": "https://eclipse-pass.github.io/pass-metadata-schemas/schemas/jhu/jscholarship.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "definitions": { - "form": { - "title": "Johns Hopkins - JScholarshipDeposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": [ - "author" - ] - } - } - }, - "required": [ - "authors", - "publicationDate" - ] - }, - "options": { - "fields": { - "title": { - "type": "textarea", - "label": "Article / Manuscript Title", - "placeholder": "Enter the manuscript title", - "rows": 2, - "cols": 100, - "hidden": false, - "readonly": true, - "order": 1 - }, - "journal-title": { - "type": "text", - "label": "Journal Title", - "placeholder": "Enter the journal title", - "hidden": false, - "readonly": true, - "order": 2 - }, - "journal-NLMTA-ID": { - "type": "text", - "label": "Journal NLMTA ID", - "placeholder": "nlmta", - "readonly": true, - "order": 3 - }, - "volume": { - "type": "text", - "label": "Volume (optional)", - "placeholder": "Enter the volume", - "hidden": false, - "order": 4 - }, - "issue": { - "type": "text", - "label": "Issue (optional)", - "placeholder": "Enter issue", - "hidden": false, - "order": 5 - }, - "issns": { - "label": "Deposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": [ - "author" - ] - } - } - }, - "required": [ - "authors", - "publicationDate" - ] - } - ] -} diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_merge_deref.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_merge_deref.json deleted file mode 100644 index 89df188b..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_merge_deref.json +++ /dev/null @@ -1,484 +0,0 @@ -{ - "type": "object", - "definitions": { - "form": { - "title": "Johns Hopkins - JScholarshipDeposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": ["author"] - } - } - }, - "required": ["authors"] - }, - "options": { - "fields": { - "title": { - "type": "textarea", - "label": "Article / Manuscript Title (required)", - "placeholder": "Enter the manuscript title", - "rows": 2, - "cols": 100, - "hidden": false, - "order": 1 - }, - "journal-title": { - "type": "text", - "label": "Journal Title (required)", - "placeholder": "Enter the journal title", - "hidden": false, - "order": 2 - }, - "journal-NLMTA-ID": { - "type": "text", - "label": "Journal NLMTA ID (optional)", - "placeholder": "nlmta", - "order": 3 - }, - "volume": { - "type": "text", - "label": "Volume (optional)", - "placeholder": "Enter the volume", - "hidden": false, - "order": 4 - }, - "issue": { - "type": "text", - "label": "Issue (optional)", - "placeholder": "Enter issue", - "hidden": false, - "order": 5 - }, - "issns": { - "label": "Deposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": ["author"] - } - } - }, - "required": ["authors"] - } - ] -} diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_simple.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_simple.json deleted file mode 100644 index 23c91662..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_simple.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": "JScholarship schema", - "description": "JScholarship-specific metadata requirements", - "$id": "https://eclipse-pass.github.io/pass-metadata-schemas/schemas/jhu/jscholarship.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "definitions": { - "form": { - "title": "Johns Hopkins - JScholarshipDeposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "$ref": "global.json#/properties/authors" - } - }, - "required": ["authors"] - } - }, - "allOf": [ - { - "$ref": "#/definitions/form" - } - ] -} diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_simple_deref.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_simple_deref.json deleted file mode 100644 index 0350d938..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/jscholarship_simple_deref.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "title": "JScholarship schema", - "description": "JScholarship-specific metadata requirements", - "$id": "https://eclipse-pass.github.io/pass-metadata-schemas/schemas/jhu/jscholarship.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "definitions": { - "form": { - "title": "Johns Hopkins - JScholarshipDeposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": ["author"] - } - } - }, - "required": ["authors"] - } - }, - "allOf": [ - { - "title": "Johns Hopkins - JScholarshipDeposit requirements for JH's institutional repository JScholarship
", - "type": "object", - "properties": { - "authors": { - "type": "array", - "title": "Authors of this article or manuscript", - "description": "List of authors and their associated ORCIDS, if available", - "uniqueItems": true, - "items": { - "type": "object", - "title": "Author", - "properties": { - "author": { - "type": "string" - }, - "orcid": { - "type": "string" - } - }, - "required": ["author"] - } - } - }, - "required": ["authors"] - } - ] -} \ No newline at end of file diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema1.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema1.json deleted file mode 100644 index 19d4492c..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema1.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/foo", - "title": "foo", - "description": "foo schema", - "$comment": "one", - "a": "1", - "x": { - "title": "X", - "description": "a letter", - "$comment": "displays good", - "type": "letter" - }, - "array": ["a", "b", "c"], - "aa": "b", - "cc": ["d", "e"] -} diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema2.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema2.json deleted file mode 100644 index 5c3101c7..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema2.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/schema2", - "title": "bar", - "description": "bar schema", - "$comment": "two", - "b": "2", - "x": { - "title": "x", - "description": "an awesome letter", - "$comment": "displays nicely", - "type": "letter" - }, - "array": ["b", "c", "d"], - "complexarray": [{"a": ["b", {"c": "d"}]}, "e"], - "aa": "b", - "cc": ["e", "f", "g"] -} \ No newline at end of file diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema3.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema3.json deleted file mode 100644 index 641405a4..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema3.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/schema3", - "title": "test", - "description": "test schema", - "$comment": "three", - "c": "3", - "array": ["c", "d", "e"], - "complexarray": [{"a": ["b", {"c": "d"}]}, "f"], - "h": { - "i": "j", - "k": ["l", "m"], - "n": { - "o": "p" - } - } -} \ No newline at end of file diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema4.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema4.json deleted file mode 100644 index 4942ff5f..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema4.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu", - "$id": "http://example.org/metadata-schemas/schemas/jhu/schema4", - "title": "example", - "description": "example schema", - "$comment": "four", - "d": "4", - "array": ["d", "e", "f"], - "complexarray": ["e", "f", {"g": "h"}], - "h": { - "k": ["l", "m", "m'"], - "n": { - "q": "r" - } - } -} \ No newline at end of file diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema5.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema5.json deleted file mode 100644 index 35219cdc..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema5.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/jhu/schema", - "$id": "http://example.org/example/schemas/schema4", - "cycleref": "#/cycleref", - "loop_ref": {"$ref": "schema6.json#/loopref"} -} \ No newline at end of file diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema6.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema6.json deleted file mode 100644 index 380b4420..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema6.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/jhu/schema_to_dereference", - "$id": "http://example.org/example/schemas/deref_err", - "loop_ref": {"$ref": "schema5.json#/loopref"} -} \ No newline at end of file diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema_to_deref.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema_to_deref.json deleted file mode 100644 index 7ae70502..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema_to_deref.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu/schema_to_dereference", - "$id": "http://example.org/metadata-schemas/schemas/jhu/deref", - "copySchemaName": {"$ref": "#/$schema"}, - "title": {"$ref": "schema1.json#/x/title"}, - "x": {"$ref": "schema2.json#/x"}, - "array": {"$ref": "schema3.json#/array"}, - "complexarray": {"$ref": "schema4.json#/complexarray"}, - "k": {"$ref": "schema4.json#/h/k"} -} \ No newline at end of file diff --git a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema_to_deref_expected.json b/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema_to_deref_expected.json deleted file mode 100644 index ecf554d6..00000000 --- a/pass-core-metadataschema-service/src/test/resources/schemas/jhu/schema_to_deref_expected.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "http://example.org/metadata-schemas/schemas/jhu/schema_to_dereference", - "$id": "http://example.org/metadata-schemas/schemas/jhu/deref", - "copySchemaName": "http://example.org/metadata-schemas/schemas/jhu/schema_to_dereference", - "title": "X", - "x": { - "title": "x", - "description": "an awesome letter", - "$comment": "displays nicely", - "type": "letter" - }, - "array": ["c", "d", "e"], - "complexarray": ["e", "f", {"g": "h"}], - "k": ["l", "m", "m'"] -} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1c7ac4ac..172cd601 100644 --- a/pom.xml +++ b/pom.xml @@ -60,7 +60,6 @@