Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom properties removed when file saved #21

Open
hansh1212 opened this issue Mar 6, 2021 · 0 comments
Open

Custom properties removed when file saved #21

hansh1212 opened this issue Mar 6, 2021 · 0 comments

Comments

@hansh1212
Copy link

hansh1212 commented Mar 6, 2021

When an avro schema (avsc file) contains any custom properties for any of its elements, the custom properties will appear in the custom properties section of the form. However, when the file is saved after any edits, these custom properties get stripped from the file.

For example, if we had a schema file containing a custom property that tags fields as containing personal identifying information ("pii" : "true"):
...
"fields" : [ {
"name" : "id",
"type" : "string"
}, {
"name" : "fname",
"type" : "string",
"pii" : "true"
}, {
"name" : "lname",
"type" : "string",
"pii" : "true"
}, {
...
Although the custom properties will appear in the schema editor, when you save the file after any changes the custom properties will no longer appear:
...
"fields" : [ {
"name" : "id",
"type" : "string"
}, {
"name" : "fname",
"type" : "string",
}, {
"name" : "lname",
"type" : "string",
}, {
...

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

No branches or pull requests

1 participant