Skip to content

Error Occurs When usageLimits Are Null/Empty, and usageLimits Should Be Optional #37

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

Closed
javiercavlop opened this issue Jan 22, 2025 · 0 comments

Comments

@javiercavlop
Copy link
Collaborator

Description:

  • Problem: An error is triggered whenever the usageLimits field is null or empty by the Pricing2Yaml parser. This behavior causes issues for pricings that do not require any usage limits, making the field unnecessarily mandatory.

  • Expected Behavior: The usageLimits field should be treated as optional, allowing for pricing configurations that do not include usage limits.

Suggestions:

  1. Fix Error Handling: Update the system to handle null or empty usageLimits gracefully without triggering errors (and handle the related errors properly).

  2. Make usageLimits Optional: Adjust the schema or validation logic to treat usageLimits as an optional field, supporting pricing configurations without limits.

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

No branches or pull requests

1 participant