feat(openapi): generator of an openapi extension project#3800
feat(openapi): generator of an openapi extension project#3800
Conversation
|
View your CI Pipeline Execution ↗ for commit dbfdd6f
☁️ Nx Cloud last updated this comment at |
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
We are approaching 2026 and still I don't see tests in your PRs 🥲 |
c9a2d2b to
20b47fa
Compare
packages/@ama-openapi/create/templates/design-extension/README.md.template
Outdated
Show resolved
Hide resolved
packages/@ama-openapi/create/templates/design-extension/README.md.template
Outdated
Show resolved
Hide resolved
packages/@ama-openapi/create/templates/design-extension/README.md.template
Outdated
Show resolved
Hide resolved
packages/@ama-openapi/create/templates/design-extension/README.md.template
Show resolved
Hide resolved
packages/@ama-openapi/create/templates/design-extension/README.md.template
Show resolved
Hide resolved
packages/@ama-openapi/create/templates/design-extension/README.md.template
Show resolved
Hide resolved
packages/@ama-openapi/create/templates/design-extension/README.md.template
Show resolved
Hide resolved
20b47fa to
f9dabff
Compare
10bc1ce to
af584a0
Compare
|
@guilhermevrs I am so happy to still seeing you doing my code review in 2026 :D, I wish you a very happy new year :). |
af584a0 to
c70dbed
Compare
b9fe5a0 to
9c86e5b
Compare
b603a1d to
0dfb73c
Compare
| # Ama OpenAPI Create extension | ||
|
|
||
| > [!WARNING] | ||
| > [Experimental](https://github.com/AmadeusITGroup/otter/blob/main/README.md#experimental): This package is available in early access, it will be part of the v14 release. |
There was a problem hiding this comment.
Not sure how to understand this. Does it mean it will no longer be experimental in v14? If so, why even mention it?
There was a problem hiding this comment.
Copy past from other package, I will update this one and the other in a separated PR
packages/@ama-openapi/create-extension/templates/README.md.template
Outdated
Show resolved
Hide resolved
packages/@o3r/core/package.json
Outdated
| "eslint-plugin-jest": "~29.12.0", | ||
| "eslint-plugin-jsdoc": "~61.7.0", | ||
| "eslint-plugin-jest": "~29.2.0", | ||
| "eslint-plugin-jsdoc": "~54.7.0", |
There was a problem hiding this comment.
nop, it is applied by the harmonizer and seems aligned with the other deps
0dfb73c to
04c8be0
Compare
1b6824f to
792a782
Compare
792a782 to
e87a9a0
Compare
There was a problem hiding this comment.
❌ The fix was rejected
We fixed the TypeScript compilation error by changing the rootDir from "." to "./src" in the tsconfig.build.json file. This ensures TypeScript only compiles source files within the src directory and uses type definitions from workspace dependencies without attempting to compile their source files, which was causing the TS6059 and TS6307 errors.
Tip
✅ We verified this fix by re-running ama-openapi-create-extension:compile.
Warning
The suggested diff is too large to display here, but you can view it on Nx Cloud ↗
🎓 Learn more about Self-Healing CI on nx.dev
e87a9a0 to
dbfdd6f
Compare
| | `--target`, `-t` | `.` | Target directory where files will be generated. | | ||
| | `--dependency-base-spec`, `-b` | - | Name of the NPM artifact to use as the dependency base specification (e.g. @my-org/specification). | | ||
|
|
||
| The command will generate a directory with the same structure of the `design` command but will setup the repository to prepare the generation of 3 specification: |
There was a problem hiding this comment.
| The command will generate a directory with the same structure of the `design` command but will setup the repository to prepare the generation of 3 specification: | |
| The command will generate a directory with the same structure as the `design` command but will set up the repository to prepare the generation of 3 specifications: |
|
|
||
| export default [ | ||
| { | ||
| name: '@ama-sdk/create/projects', |
There was a problem hiding this comment.
| name: '@ama-sdk/create/projects', | |
| name: '@ama-openapi/create-extension/projects', |
| */ | ||
| export const generateExtension = async (options: CreateExtensionOptions) => { | ||
| await generateTemplate({ ...options }); | ||
| await generateTemplate({ ...options, templatesDirectory: resolve(__dirname, '..', 'templates') }); |
There was a problem hiding this comment.
why is generateTemplate called twice?
| 'build:merge': 'redocly bundle filter-base && redocly join filtered-base server -o ./bundle/specification.yaml', | ||
| 'retrieve-externals': 'ama-openapi install', | ||
| 'watch:retrieve-externals': 'ama-openapi watch', | ||
| postinstall: 'ama-openapi install' |
There was a problem hiding this comment.
| postinstall: 'ama-openapi install' | |
| postinstall: 'npm run retrieve-externals' |
| "include": [ | ||
| "eslint*.config.mjs", | ||
| "testing/jest.config.it.js", | ||
| "testing/setup-jest.ts" |
There was a problem hiding this comment.
why are the jest specific files under tsconfig.eslint.json?
Proposed change
feat(openapi): generator of an openapi extension project
Related issues
- No issue associated -