mik-laj opened a new issue #12357:
URL: https://github.com/apache/airflow/issues/12357


   Hello my friends,
   
   I hope you are all right and you are all healthy. Today I come with another 
small improvement proposal for our project. 
   
   I think it is worth adding JSON schema validations for 
`[airflow/config_templates/config.yml`](https://github.com/apache/airflow/blob/master/airflow/config_templates/config.yml)
 file. This will allow us to detect the wrong structure of this file very 
quickly and also provide simple documentation for this file. This schema should 
be verified every time a file is loaded.
   
   In order to generate a schema, you can use generators:
   https://onlineyamltools.com/convert-yaml-to-json
   https://www.liquid-technologies.com/online-json-to-schema-converter (Please 
note that you should set array rules to "List validation". In the result, it is 
also worth updating the JSON Schema specification versions to latest current 
spec)
   
   In the generated specification, it is worth adding descriptions for each 
field: 
   
https://json-schema.org/understanding-json-schema/reference/generic.html#annotations
   
   Best regards,
   Kamil BreguĊ‚a
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to