[Release] Cloud-Native Network Function YAML Editor
Verify & Edit CNF YAML Configurations
CDNF.io YAML Editor, is an open-source, YAML configuration editor & verification tool. It is part of the CNF portfolio – as an added bonus, you can verify your cloud-native network function configuration with our tool!
The editor is available on the official website!
Features
- YAML & JSON Schema Validation
- Generating YAML Examples
- Importing & Export of Configurations
YAML Configuration Validation
Import, or copy & paste a YAML configuration via the three-dot menu in the Configuration tab. We have conveniently placed an Examples folder, with a JSON Schema that serves as the
Errors will then be highlighted, against the imported JSON schema.
How-To: Validate your YAML file
- Visit the CDNF.io YAML Editor website
- Import/paste a valid draft-04 JSON Schema, or use the existing example, via the folder icon, in the JSON Schema tab, on the right.
{ "type": "object", "properties": { "user": { "type": "object", "properties": { "id": { "$ref": "#/definitions/positiveInt" }, "name": { "type": "string" }, "birthday": { "type": "string", "chance": { "birthday": { "string": true } } }, "email": { "type": "string", "format": "email" } }, "required": [ "id", "name", "birthday", "email" ] } }, "required": [ "user" ], "definitions": { "positiveInt": { "type": "integer", "minimum": 0, "minimumExclusive": true } } }
- Have a look at the generated Example YAML code in the YAML Example tab.
Invalid YAML File
- Import, or copy & paste this invalid YAML example into the Configuration window
user: id: -33524623 name: "Jon Snow" birthday: "19/12/283" email: "jonsnow@gmail.com"
Valid YAML File
- Import, or copy & paste this valid YAML example into the Configuration window
user: id: 33524623 name: "John Snow" birthday: "19/12/283" email: "jonsnow@gmail.com"
Limitations
The JSON Schema specification recommends to use the definitions key, where all definitions should be located. Then, you should use a relative path to point to the definitions.
Our implementation of the JSON schema requires a definitions object, if the ref ID links to a definition and does not use a relative path.
- Supported: JSON Schema draft-04 (and included features, such as valid formats, etc.)
- Not supported: Loading definitions from external URIs
Feedback for CNF Tools
Leave us your feedback here or create an Issue in the repository of the CDNF.io YAML Editor. Explore our portfolio of cloud-native network functions, developed by PANTHEON.tech.
Make sure to visit our playlist on YouTube!