📄️ The Yaml4SaaS Syntax
Yaml4SaaS emerges as a pragmatic application of the Pricing4SaaS model, aligning with the overarching objective of formalizing and structuring pricing information for SaaS platforms. Building upon the foundational principles articulated in Pricing4SaaS, Yaml4SaaS embodies a simplified and versatile YAML-based syntax designed for serializing comprehensive details about SaaS offerings. The essence of Yaml4SaaS lies in its capacity to encapsulate pricing plans, add-ons, features and usage limits within a concise and human-readable YAML format. Here is a tempalte specification of the Yaml4SaaS syntax:
📄️ Feature Evaluation
Since the primary goal of the Pricing4Java is to automatically manage the access of an user to a feature, Yaml4SaaS allows to define an evaluation expression within each feature through the expression and serverExpression fields.
📄️ Yaml4SaaS Validator
Pricing4Java includes a built-in validator in every method of the YamlUtils. If you are interested in checking if your YAML file is correctly formatted, you can implement a test to do so. Here it is an example: