diff --git a/packages/editor/package.json b/packages/editor/package.json index 864a21483..4bc582dab 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@nestia/editor", - "version": "0.9.1", + "version": "0.9.2", "typings": "lib/index.d.ts", "main": "lib/index.js", "module": "lib/index.mjs", @@ -34,7 +34,7 @@ "homepage": "https://nestia.io", "dependencies": { "@mui/material": "^5.15.6", - "@nestia/migrate": "^0.21.1", + "@nestia/migrate": "^0.21.2", "@stackblitz/sdk": "^1.11.0", "js-yaml": "^4.1.0", "prettier": "3.3.3", diff --git a/packages/migrate/assets/input/v2.0/semanticscholar.json b/packages/migrate/assets/input/v2.0/semanticscholar.json new file mode 100644 index 000000000..65f9fe903 --- /dev/null +++ b/packages/migrate/assets/input/v2.0/semanticscholar.json @@ -0,0 +1 @@ +{"swagger": "2.0", "basePath": "/graph/v1", "paths": {"/author/batch": {"parameters": [{"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned.\nThe authorId field is always returned. If the fields parameter is omitted, only the authorId and name will be returned.\n

Use a period (\u201c.\u201d) for subfields of papers.

\nExamples:\n

", "name": "fields", "type": "string"}], "post": {"responses": {"400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "List of authors with default or requested fields", "schema": {"$ref": "#/definitions/AuthorWithPapers"}}}, "summary": "Get details for multiple authors at once", "description": "* Fields is a single-value string parameter, not a multi-value one.\n* It is a query parameter, not to be submitted in the POST request's body.\n\nIn python:\n\n r = requests.post(\n 'https://api.semanticscholar.org/graph/v1/author/batch',\n params={'fields': 'name,hIndex,citationCount'},\n json={\"ids\":[\"1741101\", \"1780531\"]}\n )\n print(json.dumps(r.json(), indent=2))\n\n [\n {\n \"authorId\": \"1741101\",\n \"name\": \"Oren Etzioni\",\n \"citationCount\": 34803,\n \"hIndex\": 86\n },\n {\n \"authorId\": \"1780531\",\n \"name\": \"Daniel S. Weld\",\n \"citationCount\": 35526,\n \"hIndex\": 89\n }\n ]\n\nOther Examples:\n\n
\nLimitations:\n", "operationId": "post_graph_get_authors", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AuthorIdList"}}], "tags": ["Author Data"]}}, "/author/search": {"parameters": [{"default": 0, "type": "integer", "in": "query", "description": "Used for pagination. When returning a list of results, start with the element at this position in the list.", "name": "offset"}, {"default": 100, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}, {"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of the data array in Response Schema below for a list of all available fields that can be returned.\nThe authorId field is always returned. If the fields parameter is omitted, only the authorId and name will be returned.\n

Use a period (\u201c.\u201d) for subfields of papers.

\nExamples:\n

", "name": "fields", "type": "string"}, {"required": true, "in": "query", "description": "A plain-text search query string.\n* No special query syntax is supported.\n* Hyphenated query terms yield no matches (replace it with space to find matches)", "name": "query", "type": "string"}], "get": {"responses": {"400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Batch of authors with default or requested fields", "schema": {"$ref": "#/definitions/AuthorSearchBatch"}}}, "summary": "Search for authors by name", "description": "Specifying papers fields in the request will return all papers linked to each author in the results. Set a limit on the search results to reduce output size and latency.

\nExamples:\n", "operationId": "get_graph_paper_title_search", "tags": ["Paper Data"]}}, "/paper/{paper_id}": {"parameters": [{"description": "The following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paper_id", "in": "path", "required": true, "type": "string"}, {"description": "A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned.\nThe paperId field is always returned. If the fields parameter is omitted, only the paperId and title will be returned.\n

Use a period (\u201c.\u201d) for fields that have version numbers or subfields, such as the embedding, authors, citations, and references fields:\n

\nExamples:\n", "name": "fields", "type": "string", "in": "query"}], "get": {"responses": {"404": {"description": "Bad paper id", "schema": {"$ref": "#/definitions/Error404"}}, "400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Paper with default or requested fields", "schema": {"$ref": "#/definitions/FullPaper"}}}, "summary": "Details about a paper", "description": "Examples:\n", "operationId": "get_graph_get_paper", "tags": ["Paper Data"]}}, "/paper/{paper_id}/authors": {"parameters": [{"default": 0, "type": "integer", "in": "query", "description": "Used for pagination. When returning a list of results, start with the element at this position in the list.", "name": "offset"}, {"default": 100, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}, {"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of the data array in Response Schema below for a list of all available fields that can be returned.\nThe authorId field is always returned. If the fields parameter is omitted, only the authorId and name will be returned.\n

Use a period (\u201c.\u201d) for subfields of papers.

\nExamples:\n

", "name": "fields", "type": "string"}, {"in": "path", "description": "The following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paper_id", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Bad paper id", "schema": {"$ref": "#/definitions/Error404"}}, "400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "List of Authors with default or requested fields", "schema": {"$ref": "#/definitions/AuthorBatch"}}}, "summary": "Details about a paper's authors", "description": "Examples:\n", "operationId": "get_graph_get_paper_authors", "tags": ["Paper Data"]}}, "/paper/{paper_id}/citations": {"parameters": [{"default": 0, "type": "integer", "in": "query", "description": "Used for pagination. When returning a list of results, start with the element at this position in the list.", "name": "offset"}, {"default": 100, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}, {"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of the data array in Response Schema below for a list of all available fields that can be returned.\nIf the fields parameter is omitted, only the paperId and title will be returned.\n

Request fields nested within citedPaper the same way as fields like contexts.

\nExamples:\n

", "name": "fields", "type": "string"}, {"in": "path", "description": "The following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paper_id", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Bad paper id", "schema": {"$ref": "#/definitions/Error404"}}, "400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Batch of citations with default or requested fields", "schema": {"$ref": "#/definitions/CitationBatch"}}}, "summary": "Details about a paper's citations", "description": "Fetch details about the papers the cite this paper (i.e. papers in whose bibliography this paper appears)\n

\nExamples:\n", "operationId": "get_graph_get_paper_citations", "tags": ["Paper Data"]}}, "/paper/{paper_id}/references": {"parameters": [{"default": 0, "type": "integer", "in": "query", "description": "Used for pagination. When returning a list of results, start with the element at this position in the list.", "name": "offset"}, {"default": 100, "type": "integer", "in": "query", "description": "The maximum number of results to return.
\nMust be <= 1000", "name": "limit"}, {"in": "query", "description": "A comma-separated list of the fields to be returned. See the contents of the data array in Response Schema below for a list of all available fields that can be returned.\nIf the fields parameter is omitted, only the paperId and title will be returned.\n

Request fields nested within citedPaper the same way as fields like contexts.

\nExamples:\n

", "name": "fields", "type": "string"}, {"in": "path", "description": "The following types of IDs are supported:\n\n\nURLs are recognized from the following sites:\n", "name": "paper_id", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Bad paper id", "schema": {"$ref": "#/definitions/Error404"}}, "400": {"description": "Bad query parameters", "schema": {"$ref": "#/definitions/Error400"}}, "200": {"description": "Batch of references with default or requested fields", "schema": {"$ref": "#/definitions/ReferenceBatch"}}}, "summary": "Details about a paper's references", "description": "Fetch details about the papers cited by this paper (i.e. appearing in this paper's bibliography)\n

\nExamples:\n", "operationId": "get_graph_get_paper_references", "tags": ["Paper Data"]}}}, "info": {"title": "Academic Graph API", "version": "1.0", "description": "Fetch paper and author data from the Semantic Scholar Academic Graph (S2AG).\n

\n Some things to note:\n