Skip to content

Commit

Permalink
Feat/text file editing (#57)
Browse files Browse the repository at this point in the history
* feat: Text file editing

* improve schema-generation performance

* regenerated schemas

* fix schema validation

* cors fix

* wired api and added feedback

* test fix

* add upload test

* upload test fix

* e2e fix

* try fix tests

* lockfile fix

* fix sdk version

* fix message type

* test and list update fixes

* exit code on schema generation failure

* reverted schema generation exit code

* schema generation to prev.
  • Loading branch information
gallayl authored Jun 2, 2024
1 parent f86e474 commit c2e5c16
Show file tree
Hide file tree
Showing 19 changed files with 328 additions and 225 deletions.
7 changes: 2 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.tsdk": "node_modules\\typescript\\lib",
"editor.formatOnSave": true,
"eslint.validate": [
"typescript",
"typescriptreact"
],
"eslint.validate": ["typescript", "typescriptreact"],
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
Expand Down
76 changes: 62 additions & 14 deletions common/schemas/drives-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,58 @@
],
"additionalProperties": false
},
"SaveTextFileEndpoint": {
"type": "object",
"properties": {
"url": {
"type": "object",
"properties": {
"letter": {
"type": "string"
},
"path": {
"type": "string"
}
},
"required": [
"letter",
"path"
],
"additionalProperties": false
},
"body": {
"type": "object",
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
],
"additionalProperties": false
},
"result": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"const": true
}
},
"required": [
"success"
],
"additionalProperties": false
}
},
"required": [
"url",
"body",
"result"
],
"additionalProperties": false
},
"DrivesApi": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1364,20 +1416,15 @@
},
"PUT": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"result": {},
"url": {},
"query": {},
"body": {},
"headers": {}
},
"required": [
"result"
],
"additionalProperties": false
}
"properties": {
"/files/:letter/:path": {
"$ref": "#/definitions/SaveTextFileEndpoint"
}
},
"required": [
"/files/:letter/:path"
],
"additionalProperties": false
},
"DELETE": {
"type": "object",
Expand Down Expand Up @@ -1467,6 +1514,7 @@
"required": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
Expand Down
Loading

0 comments on commit c2e5c16

Please sign in to comment.