Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Specify schema of YAML files #1962

Closed
umairidris opened this issue Aug 28, 2018 · 2 comments
Closed

Specify schema of YAML files #1962

umairidris opened this issue Aug 28, 2018 · 2 comments

Comments

@umairidris
Copy link
Collaborator

umairidris commented Aug 28, 2018

Today, it is not possible to know the schema of the rules yaml files unless one looks at examples or digs into the code.

It would be great if a schema such as https://github.com/GoogleCloudPlatform/healthcare/blob/master/deploy/templates/data_project.py.schema could be defined.

@umairidris
Copy link
Collaborator Author

Possible solution: convert to json dict and use https://github.com/Julian/jsonschema.

@forseti-security-waffle-bot
Copy link

forseti-security-waffle-bot commented Sep 4, 2018

Hi @umairidris, this would be great to have! However, we would want the schema to be proto-based.
For example, the proto syntax should describe the fields in the yaml file, their types, and in the case of an enum, their possible values. Submessages (sub dictionaries or sub lists) should be encoded as well.

Would you be able to help us define the sample schema file described in this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants