Skip to content

feat(jetstream): support for pedantic mode in consumer creation #264

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

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

aricart
Copy link
Member

@aricart aricart commented Apr 4, 2025

Introduced a pedantic option in ConsumerApiOptions to ensure stricter validation of consumer configuration during creation. Updated the add method in jsmconsumer_api.ts to handle this option, and added a test case to validate pedantic behavior. This enhances flexibility while enforcing stricter checks when needed.

Note the original API allowed for an optional action (a string), now it also allows a ConsumerApiOptions object that allows setting the action and whether it should be pedantic.

Introduced a `pedantic` option in `ConsumerApiOptions` to ensure stricter validation of consumer configuration during creation. Updated the `add` method in `jsmconsumer_api.ts` to handle this option, and added a test case to validate pedantic behavior. This enhances flexibility while enforcing stricter checks when needed.

Note the original API allowed for an optional action (a string), now it also allows a ConsumerApiOptions object that allows setting the action and whether it should be pedantic.

Signed-off-by: Alberto Ricart <[email protected]>
@aricart aricart changed the title Add support for pedantic mode in consumer creation feat(jetstream): support for pedantic mode in consumer creation Apr 4, 2025
Copy link

@scottf scottf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aricart aricart merged commit 0098978 into main Apr 4, 2025
40 checks passed
@aricart aricart deleted the pedantic branch April 4, 2025 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants