Skip to content

Commit

Permalink
Use openapi-fetch directus client (#51)
Browse files Browse the repository at this point in the history
* Generate directus schema from openapi spec

* Use openapi fetch client for directus API

* Remove try/catch logger
  • Loading branch information
gherkster authored Dec 22, 2024
1 parent 7ac9cee commit 93ff0a5
Show file tree
Hide file tree
Showing 22 changed files with 25,076 additions and 399 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ module.exports = {
"max-len": ["warn", { code: 120 }],
"vue/multi-word-component-names": "off",
},
ignorePatterns: ["dist"],
ignorePatterns: ["dist", "directus-schema.*"],
};
8 changes: 6 additions & 2 deletions common/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "common",
"version": "1.0.0",
"scripts": {
"openapi": "npx openapi-typescript ../openapi/directus.json -o ./types/directus-schema.d.ts"
},
"devDependencies": {
"@tiptap/core": "^2.2.4"
"@tiptap/core": "^2.2.4",
"openapi-typescript": "^7.4.4"
}
}
}
Loading

0 comments on commit 93ff0a5

Please sign in to comment.