-
-
Notifications
You must be signed in to change notification settings - Fork 342
fix: correctly detect default values including false in template parameters #1769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lightning-sagar
wants to merge
15
commits into
asyncapi:master
Choose a base branch
from
lightning-sagar:fix/template-params
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3a2d80f
fix: correctly detect default values including false in template para…
lightning-sagar deff989
ci: update release pipeline (#1774)
derberg a04a2b4
feat: release `@asyncapi/keeper` and use for message validation in `J…
Adi-204 ce7ceda
fix: add generator onboarding webinar to contributing guides (#1753)
Kartikayy007 1131dca
chore(release): release and bump versions of packages (#1775)
asyncapi-bot c0744b6
feat: update release worflow and trigger release (#1776)
derberg e1a13c8
chore(release): release and bump versions of packages (#1777)
asyncapi-bot 43f50f3
fix: add proper token requirements to release (#1778)
derberg 1a70eb9
chore(release): release and bump versions of packages (#1779)
asyncapi-bot 9be72ce
fix: make sure to use latest npm for release pipeline (#1780)
derberg 091ec69
fix: add to release option to read NODE_VERSION variable (#1781)
derberg 2141594
chore(release): release and bump versions of packages (#1782)
asyncapi-bot f96cf7e
ci: update of files from global .github repo (#1783)
asyncapi-bot 4046fa5
fix(template-params): correctly detect default values including false…
lightning-sagar 802b021
Merge branch 'master' into fix/template-params
lightning-sagar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,9 +29,7 @@ jobs: | |
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| # Using macos-13 instead of latest (macos-14) due to an issue with Puppeteer and such runner. | ||
| # See: https://github.com/puppeteer/puppeteer/issues/12327 and https://github.com/asyncapi/parser-js/issues/1001 | ||
| os: [ubuntu-latest, macos-13, windows-latest] | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| steps: | ||
| - name: Set git to use LF # To once and for all finish the never-ending fight between Unix and Windows | ||
| run: | | ||
|
|
@@ -53,6 +51,7 @@ jobs: | |
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "${{ steps.lockversion.outputs.version }}" | ||
| registry-url: "https://registry.npmjs.org" | ||
| - if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest' | ||
| name: Install npm cli 8 | ||
| shell: bash | ||
|
|
@@ -79,6 +78,10 @@ jobs: | |
| needs: [test-nodejs] | ||
| name: Publish to any of NPM, GitHub, or Docker Hub | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| pull-requests: write | ||
| steps: | ||
| - name: Set git to use LF # To once and for all finish the never-ending fight between Unix and Windows | ||
| run: | | ||
|
|
@@ -92,7 +95,9 @@ jobs: | |
| shell: bash | ||
| - if: steps.packagejson.outputs.exists == 'true' | ||
| name: Check package-lock version | ||
| uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master | ||
| uses: derberg/.github-asyncapi/.github/actions/get-node-version-from-package-lock@fixnodereelase | ||
| with: | ||
| node-version: ${{ vars.NODE_VERSION }} | ||
| id: lockversion | ||
| - if: steps.packagejson.outputs.exists == 'true' | ||
| name: Setup Node.js | ||
|
|
@@ -121,7 +126,6 @@ jobs: | |
| setupGitUser: false | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| GIT_AUTHOR_NAME: asyncapi-bot | ||
| GIT_AUTHOR_EMAIL: [email protected] | ||
| GIT_COMMITTER_NAME: asyncapi-bot | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| const path = require('path'); | ||
| const baseConfig = require('../../jest.config.base'); | ||
|
|
||
| module.exports = { | ||
| ...baseConfig(__dirname, { | ||
| moduleNameMapper: { | ||
| '^@asyncapi/nunjucks-filters$': path.resolve(__dirname, '../nunjucks-filters'), | ||
| }, | ||
| }), | ||
| clearMocks: true, | ||
| moduleNameMapper: { | ||
| '^nimma/legacy$': '<rootDir>../../node_modules/nimma/dist/legacy/cjs/index.js', | ||
| '^nimma/(.*)': '<rootDir>../../node_modules/nimma/dist/cjs/$1', | ||
| '^@asyncapi/nunjucks-filters$': path.resolve(__dirname, '../nunjucks-filters'), | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # @asyncapi/keeper | ||
|
|
||
| ## 0.5.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - ced1404: Pushing of release https://github.com/asyncapi/generator/pull/1747 that failed due to pipeline issues. | ||
|
|
||
| ## 0.4.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - aee45ba: Pushing of release https://github.com/asyncapi/generator/pull/1747 that failed due to pipeline issues. | ||
|
|
||
| ## 0.3.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - 8168bcd: Pushing of release https://github.com/asyncapi/generator/pull/1747 that failed due to pipeline issues. | ||
|
|
||
| ## 0.2.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - 2bd801e: Initial release of `@asyncapi/keeper` to make it available for JS templates in `@asyncapi/generator`. The generator release will contain a new JS client version with enabled message validation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| const baseConfig = require('../../jest.config.base'); | ||
|
|
||
| module.exports = { | ||
| ...baseConfig(__dirname), | ||
| moduleFileExtensions: [ | ||
| 'js', | ||
| 'json', | ||
| 'jsx' | ||
| ], | ||
| transform: { | ||
| '^.+\\.jsx?$': 'babel-jest' | ||
| }, | ||
| }; | ||
|
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@asyncapi/keeper", | ||
| "version": "0.0.1", | ||
| "version": "0.5.0", | ||
| "description": "AsyncAPI message payload validation library that validates messages against JSON Schema (Draft-07)", | ||
| "scripts": { | ||
| "build": "babel src --out-dir lib", | ||
|
|
@@ -13,46 +13,32 @@ | |
| "type": "git", | ||
| "url": "https://github.com/asyncapi/generator.git" | ||
| }, | ||
| "files": [ | ||
| "lib/**", | ||
| "README.md", | ||
| "LICENSE" | ||
| ], | ||
| "main": "lib/index.js", | ||
| "author": "Adi Boghawala <[email protected]>", | ||
| "license": "Apache-2.0", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "dependencies": { | ||
| "@asyncapi/parser": "^3.4.0", | ||
| "@hyperjump/json-schema": "^1.16.2" | ||
| "ajv": "^8.17.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/cli": "^7.25.9", | ||
| "@babel/core": "^7.26.0", | ||
| "@babel/preset-env": "^7.26.0", | ||
| "@ungap/structured-clone": "^1.3.0", | ||
| "babel-jest": "^27.3.1", | ||
| "jest": "^27.3.1", | ||
| "jest-esm-transformer": "^1.0.0" | ||
| }, | ||
| "jest": { | ||
| "setupFiles": [ | ||
| "<rootDir>/jest.setup.js" | ||
| ], | ||
| "transformIgnorePatterns": [ | ||
| "node_modules/(?!@hyperjump)" | ||
| ], | ||
| "moduleFileExtensions": [ | ||
| "js", | ||
| "json", | ||
| "jsx" | ||
| ], | ||
| "transform": { | ||
| "^.+\\.jsx?$": "jest-esm-transformer" | ||
| }, | ||
| "moduleNameMapper": { | ||
| "^nimma/legacy$": "<rootDir>/../../node_modules/nimma/dist/legacy/cjs/index.js", | ||
| "^nimma/(.*)": "<rootDir>/../../node_modules/nimma/dist/cjs/$1", | ||
| "^@hyperjump/browser/jref$": "<rootDir>/../../node_modules/@hyperjump/browser/lib/jref/index.js", | ||
| "^@hyperjump/json-schema/experimental$": "<rootDir>/node_modules/@hyperjump/json-schema/lib/experimental.js" | ||
| } | ||
| }, | ||
| "babel": { | ||
| "presets": [ | ||
| "@babel/preset-env" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.