https://authzed.com logo
Title
a

alex87

09/29/2022, 8:25 AM
I have a question regarding the Authzed playground: When I download my project as .yaml file and afterwards try to load it again via "load from file" the UI gives me the error: The uploaded validation YAML is invalid. Is this error known? It seems that import is broken or during export there is an issue with generating the yaml?
v

vroldanbet

09/29/2022, 8:42 AM
@alex87 I cannot reproduce the problem. Would it be possible to share the schema with us?
a

alex87

09/29/2022, 9:32 AM
@vroldanbet yes, here is the link for one example schema: https://file.io/ZDRL9CTCZXwS I create new schemas via the UI, export it and when I try to import it (without changes after some seconds) it does not accept the yaml.
v

vroldanbet

09/29/2022, 10:05 AM
I've identified playground has a regression when there are no assertions. could you add an assertion and try again?
cc @Joey
a

alex87

09/29/2022, 12:24 PM
Exactly. I have added assertions to all of my examples to ensure that it is not empty. Now import works. Thanks a lot 🙂 Maybe consider adding it to your test cases 😉
v

vroldanbet

09/29/2022, 12:28 PM
thank you for reporting!
j

Joey

09/29/2022, 6:31 PM
@alex87 PR issued and playground should be fixed in a day or two