Can I use the JsonSchema Validator in AppConfig to validate a yaml file in config?

0

I've created an AppConfig configuration profile with a JsonSchema validator. This works great if my config file is Json formatted, but if it is Yaml formatted, I get an error message: "[message: "instance type (string) does not match any allowed primitive type (allowed: ["object"])" - parent node: /]".

So, my question is: Does AppConfig support using the JsonSchema validator to validate Yaml files or only Json? If it does support Yaml, does the yaml config file need to be formatted in a certain manner?

asked a year ago628 views
1 Answer
1

After talking to support, it sounds like the answer is: No - a JsonSchema Validator can only be used to validate JSON. validating yaml requires using a lambda :(

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions