📄️ The Pricing2Yaml Syntax
Pricing2Yaml (previously known as 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, Pricing2Yaml embodies a simplified and versatile YAML-based syntax designed for serializing comprehensive details about SaaS offerings. The essence of Pricing2Yaml 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 Pricing2Yaml syntax:
📄️ Feature Evaluation
Since the primary goal of the Pricing4Java is to automatically manage the access of an user to a feature, Pricing2Yaml allows to define an evaluation expression within each feature through the expression and serverExpression fields.
📄️ Pricing2Yaml 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:
📄️ Version 1.0
We use YAML type abbreviations to describe the supported types of fields.
📄️ Version 1.1
We use YAML type abbreviations to describe the supported types of fields.
📄️ Version 2.0
We use YAML type abbreviations to describe the supported types of fields.
📄️ Version 2.1
We use YAML type abbreviations to describe the supported types of fields.